Python Cookbook

Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications. It is now being used by an increasing number of major organizations, including NASA and Google.Updated for Python 2.4, The Python Cookbook, 2nd Edition offers a wealth of useful code for all Python programmers, not just advanced practitioners. Like its predecessor, the new edition provides solutions to problems that Python programmers face everyday.It now includes over 200 recipes that range from simple tasks, such as working with dictionaries and list comprehensions, to complex tasks, such as monitoring a network and building a templating system. This revised version also includes new chapters on topics such as time, money, and metaprogramming.Here's a list of additional topics covered:

  • Manipulating text
  • Searching and sorting
  • 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
Another advantage of The Python Cookbook, 2nd Edition is its trio of authors--three well-known Python programming experts, who are highly visible on email lists and in newsgroups, and speak often at Python conferences.With scores of practical examples and pertinent background information, The Python Cookbook, 2nd Edition is the one source you need if you're looking to build efficient, flexible, scalable, and well-integrated systems.

Reviews from Goodreads.com

Write a review (you'll need to sign in to your Goodreads account or sign up) (showing 1-8 of 9)
By Sean (The United States) · ★★★☆☆ · December 27, 2014
Lots of practical recipes for using Python more effectively.

Just to clarify for certain of my friends (you know who you are!):
* Python is a popular computer language, named after "Monty Python's Flying Circus", a British TV comedy
* The O'Reilly Cookbook series uses the metaphor of cooking to pre... ...more
By Dave (San Rafael, CA) · ★★★☆☆ · October 08, 2014

This Python programming cookbook lives up to the standard set by the excellent Perl Cookbook. In addition, this book is associated with a website where the programming recipes were originally collected from Python users. The website continues to grow and collect new recipes and thus represents a...

...more
By Bill (Seattle, WA) · ★★★★★ · August 06, 2007
I love the cookbook series. Lots of clever tricks and details about the language you didn't know before. Plus I have to recommend this because recipe 7.3 "Using Compression with Pickling" is the first thing I've ever had published in a book. ...more
By Matej (The Colony, TX) · ★★★★★ · September 17, 2014
Quite an old edition, but still a relevant and invaluable Python resource. Very dense, providing high level recipes for daily use. Not for beginners, but a great reference book. ...more
By Enrico (Brussels, Belgium) · ★★★☆☆ · November 05, 2012
Partially usable, definitely a cookbook is not for me...
For a software recipe I just prefer StackOverflow. ...more
By Rakesh (Jamshedpur, 38, India) · ★★☆☆☆ · November 24, 2012
It's just 'okay' as far as a python cookbook is concerned. Aids programming practice, but lacks subtle qualities of a readable text. ...more
By Chris (Charlottesville, VA) · ★★★☆☆ · October 10, 2013
Good as a reference book but not that great otherwise ...more
By Andrew (Astoria, NY) · ★★★★★ · March 01, 2010
the book that taught me that Python is highly practical ...more