Python Cookbook Summary and Reviews

Python Cookbook
by Alex Martelli, Anna Ravenscroft, David Ascher

Python Cookbook
List Price: $49.95
Our Price: $22.55
You Save: $27.40 (55%)
Availability: Usually ships in 1-2 business days
Buy Used: from $12.18 (click here)
Category: Book
See more book details and other editions


or

Book Summary Information

Author: Alex Martelli, Anna Ravenscroft, David Ascher
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2005-03-25
ISBN: 0596007973
Number of pages: 848
Publisher: O'Reilly Media

Book Reviews of Python Cookbook

Book Review: A Fun Resource for Python Programmers at Most Levels
Summary: 4 Stars

Full disclosure: I purchased the first edition of this book, and received the second edition as a reviewers copy. I work for Zope Corporation.

The O'Reilly Python Cookbook is a fun resource for Python programmers at most levels. The fun comes in part from the personalities that shine through the introductions and the community-authored recipes gathered from the ActiveState Python Cookbook website. The other fun comes from the smorgasbord of topics and technologies laid out for the reader, encouraging browsing and experimentation. New Python programmers will find recipes that highlight some of the newer features of the Python language, and experienced Python programmers will likely find thought-provoking recipes both peripherally and directly related to their specialties and interests.

Like the first edition, this second edition covers a wide range of topics. Each topic has a usually-interesting introduction by well-known names in the Python community. Some topics are of general interest-shortcuts and algorithms, for instance-while others explore somewhat more specialized topics, such as networks, XML, and databases. Each cookbook recipe I read was impressively short, while often still having enough weight to them to address non-toy usages of the approaches. Many examples can also be used as introductions to the modules and packages they use. Another important similarity to the first edition is that a portion of the proceeds from the book sales are donated to the Python Software Foundation.

This edition of the cookbook does have some significant changes from the previous one. While the first edition addressed Python versions in the 1.x and 2.x line, this one addresses only Python 2.3 and 2.4. It adds about a third more recipes than the first edition, and tops the first edition's page count by over 200 pages. Some of the new additions address relatively new packages, such as the datetime, dateutils, pytz, and decimal packages, while others focus on older packages that are waxing in their influence and popularity, such as Twisted. Many recipes are more polished, such as the "Synchronizing All Methods in an Object," which has an arguably more general purpose approach and an interesting discussion in the new edition.

Omissions are sometimes as interesting as inclusions in recipe books, but an interpretation of their significance can be difficult. The new edition dropped almost 100 of the first edition's recipes. In the "Distributed Programming" topic, the SOAP references in the first edition have disappeared, and a recipe for Twisted's Perspective Broker has surfaced. While the Perspective Broker is an interesting technology with an elegant cookbook example, the seeming judgement-SOAP is now less worth discussion than one of the Twisted project's packages-might raise some eyebrows. Similarly, Zope and the ZODB (Zope Object Database) are acknowledged as heavyweights in the introductions to their respective topics ("Web Programming" and "Persistence and Databases"). Zope 3 is even granted a rave review: "The new, revolutionary major release, Zope 3, makes Zope more Pythonic and powerful than ever." But not a single recipe can be found for either, in either edition. Perhaps that simply is indicative that the Zope community ought to pay more attention to the Cookbook website.

This returns us to the initial observation of this review: the cookbook is a community driven project, and thus reflects the personalities of the programmers who contributed to it, rather than necessarily to trends of the Python or IT community. But it also benefits from the energy and enthusiasm of the contributors who often have palpable excitement for the technologies they are demonstrating. This also makes me more interested in the book as a source for introductions than as a source for ready-made recipes.

If a picture is worth a thousand words, a working, explained example of a new package ought to be worth quite a few too. The cookbook is a fun browse and a fun introduction to other aspects of the Python language. While I have found myself using one or two of the recipes from the first edition, that use alone is not enough to justify the cover price. It is more compelling to me as a fun introduction to Python topics and approaches. In that light, I recommend it.

Python Books

Book Subjects
Most talked about in Python Books
Beginning Python: From Novice to Professional (Books for Professionals by Professionals) ImageBeginning Python: From Novice to Professional (Books for Professionals by Professionals)
by Magnus Lie Hetland
Apress; Published: 2008-09-19; Paperback; Book
Best price: $25.65
Price in other shops: $44.99
Dive Into Python ImageDive Into Python
by Mark Pilgrim
Apress; Published: 2004-07-19; Paperback; Book
Best price: $17.00
Price in other shops: $39.99
USING PYTHON 2.6: and Installing Modules (Python documentation MANUAL Part 3) ImageUSING PYTHON 2.6: and Installing Modules (Python documentation MANUAL Part 3)
by Guido van Rossum Guido van Rossum, Fred L. Drake
CreateSpace; Published: 2009-04-13; Paperback; Book
Best price: $18.79
Price in other shops: $22.95
PYTHON 2.6 and C or C++: Extending and Embedding Python (Python documentation MANUAL Part 5) ImagePYTHON 2.6 and C or C++: Extending and Embedding Python (Python documentation MANUAL Part 5)
by Guido van Rossum, Fred L. Drake
CreateSpace; Published: 2009-04-13; Paperback; Book
Best price: $11.62
Price in other shops: $13.95
Pro Python System Administration (Expert's Voice in Open Source) ImagePro Python System Administration (Expert's Voice in Open Source)
by Rytis Sileika
Apress; Published: 2010-07-27; Paperback; Book
Best price: $37.82
Price in other shops: $49.99
Mathematics for the Digital Age and Programming in Python ImageMathematics for the Digital Age and Programming in Python
by Maria Litvin, Gary Litvin
Skylight Publishing; Published: 2010-04-15; Hardcover; Book
Best price: $35.05
Price in other shops: $39.75
Python 2.1 Bible ImagePython 2.1 Bible
by Dave Brueck, Stephen Tanner
Wiley; Published: 2001-06-29; Paperback; Book
Best price: $25.00
Price in other shops: $63.95
Bioinformatics Programming Using Python: Practical Programming for Biological Data (Animal Guide) ImageBioinformatics Programming Using Python: Practical Programming for Biological Data (Animal Guide)
by Mitchell L. Model
O'Reilly Media; Published: 2009-12-22; Paperback; Book
Best price: $42.94
Price in other shops: $59.99
Programming Python ImageProgramming Python
by Mark Lutz
O'Reilly Media; Published: 2006-08-30; Paperback; Book
Best price: $15.54
Price in other shops: $59.99
Python Threads ImagePython Threads
by Ashz Maruch, Wesley J. Chun
O'Reilly Media; Published: 2001-01; Paperback; Book
Similar books summaries and other product reviews
Python Programming: An Introduction to Computer Science 2nd Edition ImagePython Programming: An Introduction to Computer Science 2nd Edition
by John Zelle
Franklin, Beedle & Associates Inc.; Published: 2010-05-18; Paperback; Book
Best price: $32.20
Price in other shops: $45.00
Beginning Python: From Novice to Professional (Books for Professionals by Professionals) ImageBeginning Python: From Novice to Professional (Books for Professionals by Professionals)
by Magnus Lie Hetland
Apress; Published: 2008-09-19; Paperback; Book
Best price: $25.65
Price in other shops: $44.99
Python Programming for the Absolute Beginner, 3rd Edition ImagePython Programming for the Absolute Beginner, 3rd Edition
by Michael Dawson
Course Technology PTR; Published: 2010-01-01; Paperback; Book
Best price: $20.14
Price in other shops: $34.99
The Python Standard Library by Example (Developer's Library) ImageThe Python Standard Library by Example (Developer's Library)
by Doug Hellmann
Addison-Wesley Professional; Published: 2011-06-11; Paperback; Book
Best price: $29.36
Price in other shops: $59.99
Learning Python: Powerful Object-Oriented Programming ImageLearning Python: Powerful Object-Oriented Programming
by Mark Lutz
O'Reilly Media; Published: 2009-10-09; Paperback; Book
Best price: $29.46
Price in other shops: $54.99
Python Pocket Reference: Python in Your Pocket (Pocket Reference (O'Reilly)) ImagePython Pocket Reference: Python in Your Pocket (Pocket Reference (O'Reilly))
by Mark Lutz
O'Reilly Media; Published: 2009-10-15; Paperback; Book
Best price: $8.24
Price in other shops: $14.99
Programming Python ImageProgramming Python
by Mark Lutz
O'Reilly Media; Published: 2011-01-07; Paperback; Book
Best price: $32.95
Price in other shops: $64.99
Python in a Nutshell, Second Edition (In a Nutshell) ImagePython in a Nutshell, Second Edition (In a Nutshell)
by Alex Martelli
O'Reilly Media; Published: 2006-07-21; Paperback; Book
Best price: $19.71
Price in other shops: $39.99
The Quick Python Book, Second Edition ImageThe Quick Python Book, Second Edition
by Vern Ceder
Manning Publications; Published: 2010-01-15; Paperback; Book
Best price: $23.22
Price in other shops: $39.99
Python Essential Reference (4th Edition) ImagePython Essential Reference (4th Edition)
by David M. Beazley
Addison-Wesley Professional; Published: 2009-07-19; Paperback; Book
Best price: $24.74
Price in other shops: $49.99