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.

■INDEX<br />

599<br />

split function<br />

re module 239, 240<br />

Sprite class<br />

pygame.sprite module 530<br />

sqrt function 18<br />

math module 554<br />

Stackless Python<br />

alternative Python distribution 6<br />

StandardError exception class 287<br />

start method<br />

adding to handler superclass 398<br />

Match Objects 242<br />

start_paragraph method<br />

adding to handler superclass 398<br />

statements 14–15<br />

assignment statements 83–85<br />

blocks 85–86<br />

conditional statements 86–87<br />

elif clauses 88<br />

else clauses 87<br />

if statements 87<br />

nesting blocks 88<br />

conditions 86<br />

assertions 93<br />

boolean statements 91–92<br />

comparison operators 89–91<br />

del statements 103–104<br />

eval statements 105–106<br />

exec statements 104–105<br />

if statements 16<br />

import statements 82–83<br />

loops 93–94<br />

breaking out of 98–100<br />

for loops 95<br />

iterating over dictionaries 96<br />

iteration utilities 96–98<br />

while loops 94<br />

pass statements 102<br />

print statements 14, 16<br />

using with commas 81–82<br />

static methods<br />

creating with staticmethod objects 187<br />

stderr variable<br />

sys module 215, 258<br />

stdin variable<br />

iteratorability of 266<br />

sys module 215, 258<br />

stdout class<br />

sys module 215, 258<br />

write method 310<br />

StopIteration exception 190<br />

str function 25, 561<br />

StreamRequestHandler class 303<br />

strftime function<br />

time module 227, 441<br />

string formatting<br />

dictionaries 71, 72<br />

string module 501<br />

Template class 72<br />

template strings 54<br />

values from 60<br />

string representations 25<br />

strings<br />

comparing strings and sequences 91<br />

concatenating strings 24<br />

input compared to raw_input 26<br />

long strings 27<br />

methods 563–565<br />

raw strings 27, 28<br />

single-quoted strings and escaping quotes<br />

23–24<br />

string formatting 53–56<br />

conversion types 56–57<br />

signs, alignment, and zero-padding<br />

58–59<br />

simple conversion 56<br />

width and precision 57

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

Saved successfully!

Ooh no, something went wrong!