Python Cookbook

Index

[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] [Z]

tabs in strings, expanding/compressing

tar files, compressed, archiving files into tarfile module

tasks, automatic, checking/modifying on Windows tell method

     rewinding input files Telnet, performing remote logins using

temperature scales, converting among tempfile module Template Method Design Pattern 2nd

     queuing termios module ternary operator

testing

     CGI

     exception handling

     objects for string-like characteristics    unit tests

         checking values against

         running automatically         running simply

TestThread class text

     converting HTML documents to, on Unix    extracting         from OpenOffice.org files

         from Word files

     parsing

    processing [See text processing]

     reading from files

     searching/replacing in files

     sources of

    strings [See text strings]

text consoles, providing progress indicators

text editors, spawning from scripts

text processing [See also text text strings] [See also text text strings]

     basic operations

     by characters, text strings

     converting characters to Unicode text strings     aligning

     case-insensitive

     changing indentation of    checking

         contents of

         endings of

         for set of characters

    converting

         between Unicode and plain

         to lowercase/uppercase     expanding/compressing tabs in

     filtering for set of characters     interpolating variables in

     performing substitutions on     processing by character

     reversing by words or character    substrings [See substrings]     testing for string-like characteristics

     translate method, simplifying usage of     trimming space from ends of textHandler class

theobject.something syntax

There's More Than One Way To Do It (TMTOWIDI)

Thread class

thread module thread pools

threading module

     synchronization constructs in threads 2nd

     adding to Python programs to enhance performance     allocating per-thread storage

     combining GUIs and asynchronous I/O with     communicating among via Queue class     communicating with, Erland's approach to

     coordinating by message passing

     daemon

     GIL, adding to Python programs

     locking

     multiple, reducing data structures accessed by

     multitasking without

     synchronizing

     terminating

time [See date/time]

time module

timedelta module (datetime) 2nd

timedelta module, calculating dates

timeit module     measuring performance with Tix extension library

Tkinter application

     using IDLE tree widget inTkinter applications

     implementing tabbed notebook for

Tkinter toolkit

     adding drag-and-drop reordering to listbox

     as GUI toolkit

     implementing stopwatch in

Tkinter widgets     copying geometry methods/options between

     embedding inline GIFs using     entering accented characters in

     supporting multiple values per row in listbox tkSimpleDialog functions, using default values/bounds with

TMTOWTDI (There's More Than One Way To Do It) tokens     merging/splitting

toy programs traceback module traceback.print_exc function

tracebacks

     getting information from while debugging

translate method 2nd 3rd

     simplifying usage of     string filtering

try/except statement, using inside expressions

TTY functions tty module

TtyFormatter class tuples, implementing with named items

Twisted two-dimensional points, computing convex hull and diameter type checking

TypeError exception, raised by inspect.getargspec

Категории