04.08.2014 Views

o_18ufhmfmq19t513t3lgmn5l1qa8a.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

■INDEX<br />

589<br />

localtime function<br />

time module 227<br />

logging 385–387<br />

logging module 252<br />

long function 560<br />

long strings 27<br />

loop method<br />

asyncore module 458<br />

loops 93, 94<br />

breaking out of<br />

break statement 98<br />

continue statement 99<br />

else clauses 100–101<br />

while true/break idiom 99–100<br />

for loops 95<br />

iteration utilities<br />

numbered iteration 97<br />

parallel iteration 96–97<br />

reversed and sorted iteration 98<br />

while loops 94<br />

lower method 62, 91<br />

■M<br />

MacPython 571<br />

Macs<br />

installing Python 6<br />

magic methods 173, 553<br />

constructors 174–175<br />

calling unbound superclass constructor<br />

177–178<br />

overriding 175–177<br />

item access 179<br />

basic sequence and mapping protocol<br />

180–182<br />

subclassing list, dict and str 182–184<br />

iterators<br />

iterator protocol 190<br />

making sequences from iterators 191<br />

setting up Python 209<br />

super function 178–179<br />

mailbox module 302<br />

mailcap module 302<br />

MainLoop method<br />

wx.App class 273<br />

maketrans function 60, 64<br />

MANIFEST.in file 376<br />

map function 134, 560<br />

markup project. See instant markup project<br />

Martelli, Alex<br />

boy/girl pairing solution 102<br />

Python Cookbook 93<br />

match function<br />

re module 239<br />

MatchObjects and groups<br />

re module 241<br />

math module<br />

sqrt function 554<br />

Matplotlib/pylab<br />

alternative to P Y X and ReportLab 420<br />

max function 40, 560<br />

MAX_HISTORY_LENGTH constant<br />

setting to 6 504<br />

McMillan installer<br />

installing Distutils toolkit 378<br />

md5 module 251<br />

membership 39<br />

in operator 39–40<br />

memory leaks 366<br />

methods<br />

compared to functions 149<br />

creating 150–151<br />

definitions 148<br />

mhlib module 302<br />

min function 40, 561<br />

minimum field width<br />

conversion specifiers 56<br />

mktime function<br />

time module 227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!