04.08.2014 Views

o_18ufhmfmq19t513t3lgmn5l1qa8a.pdf

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

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

584 ■INDEX<br />

one line at a time 264<br />

reading everything 265<br />

opening 255–257<br />

filter function 134, 135, 559<br />

filterwarnings function 160<br />

finally clause<br />

exceptions 168<br />

find method 60, 61<br />

findall function<br />

re module 239, 240<br />

flatten generator 193<br />

rewritten as plain function 195<br />

flip function<br />

pygame.display module 529, 531, 532<br />

float function 560<br />

floats 10<br />

Font function<br />

pygame.font module 529<br />

for loops 95<br />

compared to list comprehension 101<br />

range function 548<br />

for statements 570<br />

forking<br />

multiple connections 304<br />

SocketServer module 305<br />

tag<br />

action attribute 476<br />

format function 488<br />

--formats switch 377<br />

found_terminator method<br />

async_chat class 460, 461<br />

framework for extensions 367–368<br />

from module import function 18<br />

reasons not to use 19<br />

fromkeys method<br />

dictionaries 74<br />

frozenset type<br />

sets module 223<br />

ftplib module 302<br />

functions 16, 549–550<br />

and exceptions 168–169<br />

compared to methods 149<br />

creating 111<br />

definitions 570<br />

documenting 112<br />

example of module containing a function<br />

205<br />

functional programming 133<br />

apply function 137<br />

filter function 134–135<br />

map function 134<br />

reduce function 135–137<br />

parameters 113<br />

changing 114–119<br />

collecting 121–123<br />

distributing 123–124<br />

keyword parameters and defaults<br />

119–121<br />

supplying and receiving example<br />

124–126<br />

values 113<br />

Python functions 112–113<br />

■G<br />

Gamma, Erich et al<br />

Design Patterns 387<br />

Gang of Four<br />

Design Patterns 387<br />

garbage collection 366–367<br />

gathering operators<br />

* operator 121<br />

** operator 122<br />

generator-function 194<br />

generator-iterator 194<br />

generators 191<br />

avoiding 194–195<br />

eight queens example 195<br />

backtracking 196<br />

base case 197–198

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

Saved successfully!

Ooh no, something went wrong!