16.01.2014 Views

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

Beginning Python - From Novice to Professional

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■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 />

Mac<strong>Python</strong> 571<br />

Macs<br />

installing <strong>Python</strong> 6<br />

magic methods 173, 553<br />

construc<strong>to</strong>rs 174–175<br />

calling unbound superclass construc<strong>to</strong>r<br />

177–178<br />

overriding 175–177<br />

item access 179<br />

basic sequence and mapping pro<strong>to</strong>col<br />

180–182<br />

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

itera<strong>to</strong>rs<br />

itera<strong>to</strong>r pro<strong>to</strong>col 190<br />

making sequences from itera<strong>to</strong>rs 191<br />

setting up <strong>Python</strong> 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 />

<strong>Python</strong> 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 <strong>to</strong> P Y X and ReportLab 420<br />

max function 40, 560<br />

MAX_HISTORY_LENGTH constant<br />

setting <strong>to</strong> 6 504<br />

McMillan installer<br />

installing Distutils <strong>to</strong>olkit 378<br />

md5 module 251<br />

membership 39<br />

in opera<strong>to</strong>r 39–40<br />

memory leaks 366<br />

methods<br />

compared <strong>to</strong> 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!