Inside, you’ll find complete recipes for more than a dozen topics, covering the core Pyth ...more
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 present a collection of small, practical solutions ("recipes") to specific programming problems.
Hence, despite my misleading lead-in, the Python Cookbook has nothing to do with preparing snakes for human c ...more
There are some good recipes but most of the book (about 85%) can be summarized in one sentence "You want to do some job, find third party library to do it for you"
Especially annoying that in some recipes the section ends with something like "there are some better libraries to do this job so use them and not the suggested in recipe?!?!?!"
Some of the recipes are very basic and can be summarized in few lines but in many cases those re ...more
The book covers Python 3.3. The authors warn some recipes aren't backward compatible with 2.X. While I would have liked more on the transition, I'm not a Python developer – I just do some scripts. It's entirely possible nobody cares about compatibility.
My favorite recipe was on CSV. Paring was sh ...more
Go get it, and read it twice. Your Python will thank you. :)
It is so well structured: chapters grouped by programming techniques or domain tasks and each chapter has recipes ordered by complexity level. This makes the book good even for not-so-begginer Python programmers, they can just read first 5 recipes in each chapter or read chapter until they start having problems with smooth reading and understanding.
The recipes include only starndard library ingredients however alternative 3rd party tools are also mentioned. T ...more
I also recommend reading it cover to cover. That is tough going (it’s an all-encompassing tome) and will take some time. However it’s incredibly valuable for helping shrink the space of unknown unknown best practices in Python. “Oh wait, isn’t there a better way of loading package data files... yes, that’s right...”
(What are generators and iterators and why would you use them? Are there elegant built-in tricks for string parsing and data structures? etc.)
It's structured as "problem: solution!" and is very dense but clear. Works either for reading cover-to-cover and using as a reference.
If I had to find fault with anything it's that the code samples could use a little cleaning up. The coding style is inconsistent (understandably with two authors), and not always in agreement with generally accepted best practices (pep8). I feel running the examples through a linter would have fixed that, but it's immaterial to the utility of individual examples.
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 great resource for Python programmers.
Third (3) edition is best, don't read previous versions.
The authors' discussions, approaches and solutions to problems are way better than what the current Python docs can offer. I found it most useful for Iterators, Generators and Meta-programming.
Goodreads is hiring!
Learn more »