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]

p2exe, making Windows executables from scripts

parameters, single passing style across DB API modules parentheses, balanced, checking strings for

parser generators parser module

parsing     text

     XML with MSHTMLpasswords     random

     somewhat-random PB (Perspective Broker) PDF files, counting pages on Mac OS X

PEM (Privacy-enhanced Electronic Mail)

percentage error

performance

     adding entries to dictionaries     algorithms and

     big-O analysis and notation

     comparing isorted function with sorted function     comparing select method with sort method

     dictionary unions/intersections     enhancing, adding threads to Python programs

     file-based transformations     invert_dict_fast versus invert_dict     multiple string pieces in sequences

     multiprocess computing

     search paths, changing

     sorting and

     sorting by object attributes

persistence

     compression with

Perspective Broker (PB)

pickle module 3rd [See also pickling] [See also pickling]

     serializing data

     use cases for

pickling

     code objects

     objects with bound methods PIL (Python Imaging Library) 2nd [See also text] [See also text]

     converting to Unicode

PLY parser generator Pmw extension library

polymorphism

     as benefit of OOP

     Python functions and

     signature-based

pop method

     extracting subsets from dictionaries     getting values from dictionaries

POP servers, authenticating users POP3 mailbox, inspecting interactively

popen module, processes, driving external popen2 module, capturing output and error streams

poplib module portability of code portalocker.py module

PostgreSQL, storing BLOBs in predicates     expanding list items

prime numbers, computing

print statement

printf function

printing, database cursor content priority queue

PriorityQueue class

Privacy-enhanced Electronic Mail (PEM) processes

     daemon, forking on Unix-like systems     debugging threads in

     external, driving with popen     running on Unix-like systems, capturing output and error streamsprocessing

     international text with Unicode

     list items in random order

     text

         non-ASCII

     words in files

procmail, blocking duplicate email messages

programming code

programming languages, state and behavior in

programs about programs

progress indicators, providing on text consoles

progressbar class

properties, avoiding boilerplate accessors for

property function proxies, special method delegation in proxy function

proxy, tunneling SSL through

proxying pseudo-files, getting/parsing contents of

psycopg module

pty module

Py-DBAPI (Python DB Application Programming Interface)

PyGTK interface to GTK toolkit

PyGUI API

PyQt, combining GUIs and asynchronous I/O with threads Pyrex, building C extensions

pysqlite modulePython [See also Python 2.3 Python 2.4] [See also Python 2.3 Python 2.4]

     as adding machine     benefits of simplicity

     coding extensions in C     distributions, ActivePython     extending/embedding

     interface for accessing relational databases         alternatives to     2nd [See also multithreaded programming] [See also multithreaded programming]

         adding threads to programs

     OOP features in

     power tools

     printf C function in     programming shortcuts

     source code, converting into HTML markup

     support for multiple paradigns     tree of objects, converting XML document into

Python 2.3 [See also Python] [See also Python]     accessing decimal module

     interpolating variables in strings     string alignment, padding character inPython 2.4 [See also Python] [See also Python]

     doctest module, using with unittest

     DSU support

     email messages in

     email parser in

     generator expressions

     interpolating variables in strings

     string alignment, padding character in

Python Database Row Module (db_row)

Python DB Application Programming Interface

Python Imaging Library (PIL)

Pythonwin toolkit

PyWin32 package 2nd

PyXML package

Категории