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.

600 ■INDEX<br />

string methods 59–60<br />

find method 60–61<br />

join method 61–62<br />

lower method 62<br />

replace method 62<br />

split method 63<br />

strip method 63<br />

translate method 64–65<br />

string representations 25<br />

Unicode strings 29<br />

strip method 63<br />

strptime function<br />

time module 227<br />

sub method<br />

adding to handler superclass 398<br />

sub function<br />

re module 239, 240<br />

subclassing<br />

built-in classes 173<br />

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

subprocess module<br />

running the Tidy program 317<br />

using command-line tools 352<br />

subprocess module<br />

speeding up programs 361<br />

substitutions<br />

using group numbers and functions in<br />

242–243<br />

sum function 561<br />

sunspots example<br />

creating line diagram from data 411<br />

first implementation 413<br />

constructing some polylines 415<br />

drawing with ReportLab 413–414<br />

prototype 416<br />

preparations 412<br />

second implementation 417<br />

getting the data 417–418<br />

using LinePlot class 418<br />

super function<br />

using 178–179<br />

working on old style classes 173<br />

superclasses<br />

multiples 154–155<br />

specifying 153<br />

Surface function<br />

pygame module 528<br />

SWIG tool 361<br />

compiling, linking, and using 364–365<br />

detecting palindromes 362–363<br />

extending Python 358<br />

installing 362<br />

interface file 363<br />

introduction 361<br />

running 363<br />

using 362<br />

synchronous network programming 298<br />

SyntaxError class 161<br />

sys module<br />

example 216<br />

functions and variables 215<br />

getdefaultencoding function 436<br />

setdefaultencoding function 436<br />

system function<br />

os module 217<br />

■T<br />

TCPServer class<br />

SocketServer module 303<br />

telephone book example 70<br />

revised 78<br />

tell method<br />

file object 260<br />

telnetlib module 302<br />

Template class<br />

string Module 72<br />

template strings 54<br />

Test-Driven Development<br />

Beck, Kent et al 387

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

Saved successfully!

Ooh no, something went wrong!