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

601<br />

TestCase class<br />

methods 348<br />

unittest module 347<br />

test-driven programming 341, 344<br />

testing 341<br />

alternatives to unit testing 350<br />

profiling 353–354<br />

PyChecker and PyLint 351–353<br />

code coverage 343<br />

planning for change 343<br />

requirement specification 342–343<br />

test-driven development process 344<br />

tools for testing 344<br />

doctest tool 344–346<br />

unittest module 347–349<br />

unit testing 341<br />

testmod function<br />

doctest tool 345–346<br />

TEX -based typography<br />

P Y X support for 412<br />

text editor application example<br />

elements 270<br />

requirements 269<br />

textwrap module 336<br />

Thomas, David and Hunt, Andrew<br />

Pragmatic Programmer, The 387<br />

threading<br />

multiple connections 304<br />

SocketServer module 305<br />

threading module 501<br />

threadsafety module property<br />

Python DB API 286<br />

Tidy 314<br />

getting Tidy library 316<br />

introduction 315–316<br />

using command-line Tidy 317<br />

time function<br />

time module 441<br />

time module 440, 501<br />

functions required for news project 441<br />

introduction 226–227<br />

time function<br />

time module 227<br />

timeit module 227, 251<br />

profiling 353<br />

TinyFugue 457<br />

Tkinter GUI toolkit 271, 573<br />

example of using 281–282<br />

trace module 251<br />

trace.py program 343<br />

tracebacks 159<br />

cgitb module 486<br />

translate method 60, 64–65<br />

translation tables 64<br />

trapping exceptions162<br />

truth values 86<br />

try statements 570<br />

try/except statements 169<br />

adding except clause 164<br />

catching exceptions 162<br />

compared to if/else 170<br />

try/finally statements<br />

closing files 261<br />

tuple function 50, 561<br />

tuples 31, 49, 50, 55, 56<br />

basic tuple operations 50<br />

conversion specifiers 55<br />

tuple function 50<br />

uses 51<br />

Twisted<br />

downloading and installing 308<br />

writing a Twisted server 309<br />

Twisted framework<br />

LineReceiver class 455<br />

twisted.internet.protocol module<br />

Factory class 309

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

Saved successfully!

Ooh no, something went wrong!