Python Cookbook by Alex Martelli
This is a collection of problems, solutions, and practical examples for Python programmers, written by Python programmers. It contains over two hundred recipes for text manipulation, object oriented programming, XML processing, system administration, and more. It contains useful code for both novices and advanced practitioners, with contributions from Guido Van Rossum, Tim Peters, Paul Prescod, and Mark Hammond. Recipes include: searching and sorting; manipulating text; working with files and the filesystem; object-oriented programming; dealing with threads and processes; system administration; interacting with databases; creating user interfaces; network and Web programming; processing XML; distributed programming; debugging and testing; and extending Python.