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.

582 ■INDEX<br />

enumerate function 559<br />

numbered iteration 97<br />

environ mapping<br />

os module 217<br />

environment variables<br />

setting 209<br />

equality operator 89, 547<br />

compared to identity 552<br />

error class<br />

pygame module 529<br />

Error exception class 287<br />

error messages. See tracebacks<br />

escape function<br />

re module 239, 241<br />

escaping quotes 23–24<br />

eval function 559<br />

eval statements 105–106<br />

event handling<br />

wxPython GUI toolkit 278<br />

except clause<br />

adding to try/except statement 164<br />

catching all exceptions 165–166<br />

catching the object 165<br />

catching two exceptions with one block 165<br />

using more than one 164<br />

Exception class 161<br />

catching all exceptions 167<br />

creating custom exception classes 162<br />

examples of using with raise statement<br />

160–161<br />

exception handling<br />

SimpleXMLRPCServer class 337<br />

exceptions 159<br />

built-in exceptions 161<br />

catching exceptions 162<br />

all exceptions 165–167<br />

catching two exceptions with one<br />

block 164<br />

raise statement 163<br />

catching the object 165<br />

custom exception classes 162<br />

finally clause 168<br />

functions and 168–169<br />

introduction 159–160<br />

objects 159–160<br />

raise statement 160–161<br />

using else clauses 166<br />

using more than one except clause 164<br />

Zen of 169–170<br />

exec statements 104–105, 569<br />

execfile function 559<br />

execute method<br />

cursor object 289, 486<br />

executemany method<br />

cursor object 289<br />

executing programs 19–20<br />

exit function<br />

sys module 215<br />

exponentiation operator (**) 12<br />

compared to pow function 16<br />

expression statements 566<br />

expressions 10–12<br />

compared to statements 14<br />

Python reference 557–566<br />

extend method<br />

lists 44<br />

deque type 226<br />

extending Python<br />

introduction 357–358<br />

Jython and IronPython 358–360<br />

writing C extensions 360<br />

hacking it on your own 365–370<br />

SWIG 361–365<br />

tools 360<br />

extendleft method<br />

deque type 226<br />

Extreme Programming 341

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

Saved successfully!

Ooh no, something went wrong!