Please Sign Up to Request This Product

Python Cookbook

You need to be an approved reviewer to request a product. Please sign up to request access or login to your account.

If you've already signed up and you haven't heard from us yet please email and we will check on your request.


If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.


On Jan 23 Thom Allen wrote: Build some good Python meals with this cookbook
One of my favorite books types are Cookbooks. I like them because they tend to have lots of code examples, and a good explanation of what's going on and why. The only thing I would have like to see is more break down the example code line by line or group of lines. I wanted to know why the author chose this style or used these methods. Great reference book though. Full Review  >

Rating: StarStarStarStarStar4.0

On Oct 7 Amit Saha wrote:
Authors do a great job and while you won't perhaps benefit from reading this book page to page, but you may certainly as well, since you will most likely learn new things all throughout. All in all great book, must have! Full Review  >

Rating: StarStarStarStarStar5.0

On Sep 17 Arthur Zubarev wrote: Worth every penny, a book to read again, and again
I am tempted to state right away that this book is one of these rare “gems”! Absolutely worth every penny spent and perhaps even more in a way of getting more done in less time or even just can be used to advance professionally. So big thank you to Alex Martelli and David Ascher! I can’t imagine how much time, energy, insight and effort the authors put into this book, but it is sure one of the longest professional books I have ever read. Like I said, this book is very comprehensive at 608 pages long and touches most, if not all, aspects a typical IT pro would deal with in his or her professional life. It may appear though very dry, and in my opinion it should be, but it is the book to come back to again and again, time after time, year after year, so if you need a single specific recipe, you will not feel the book is very short thanks to the way it is structured. Be informed though that this book is covering Python 3 and not the 2.7 which comes canned with most Linux distributions. I happen to actually use this book to cope with several assignments at work involving some medium to high complexity data processing for reporting purposes, thus more than a few recipes were used. Namely, these were “Strings and Text” Ch. 2, “Numbers, Dates and Times” Ch. 3, “Files and I/O” Ch. 4, then hopped to “Functions” Ch. 7, which followed by “Parsing, Modifying and Rewriting XML” Ch. 6.6 and finally landed on “Integrating with a Relational Database” Ch. 6.8. I wish though chapter 7 “Functions” would precede most others because I think it belongs right after “Iterators and generators” which I needed to use as I expanded my program. I must tell each did its magic, after all Python excels on processing text! The reading continued in a free-form manner thereafter. Now let me expand a little about my personal experience: it was the 2nd ebook reading on my newly acquired Samsung Galaxy 8 Note after reviewing a previous book and this time the experience on my mobile device using MoonReaderPro (that was updated to the latest version which supposed to take care of many bugs) just prior to using it unfortunately was not that great. Specifically the formatting aspect and namely the code portion of the ebook. I do not know who to blame but the code text appeared lost its line feed positions as well as syntax highlighting. Sadly, I was not able to complete the .mobi ebook on my tablet resorting to using Foxit on my old laptop. I still, nevertheless give this book the well deserved 5 out of 5 rating because it does deliver very well what was it has promised. Full Review  >

Rating: StarStarStarStarStar5.0

On Sep 1 Devendra Tewari wrote: Extensive tome of recipes for the Python 3 programmer
Python Cookbook is an extensive tome of recipes for the Python 3 programmer. It is a perfect companion book for those migrating Python 2 code to Python 3. If you are stuck with Python 2, you may still find the second edition of the book for sale, but the recipes may be dated as they cover Python 2.4. Full Review  >

Rating: StarStarStarStarStar5.0

This book gives you what you need if you're an experienced Python programmer. Admit it - we all face challenges in programming, and from time to time we need experts to help us through those problems. This book will get you there. Full Review  >

Rating: StarStarStarStarStar5.0

On Jul 27 Jim Schubert wrote: Fantastic Cookbook
I read Python Cookbook as part of the O'Reilly Bloggers program. I would highly recommend Python Cookbook to developers with any level of expertise, provided they understand the basic syntax and usage of Python 3. Full Review  >

Rating: StarStarStarStarStar5.0

On Jul 15 Dylan Scott wrote: Solid Cookbook
This cookbook seems to follow closely in the vein of other cookbooks in the series. Programmers with as least some experience with Python will likely get the most out of this material. Full Review  >

Rating: StarStarStarStarStar5.0

On Jul 13 Kiatikun Luangkesorn wrote:
I do miss the introductions to each chapter that was in the 1st and 2nd editions of Python Cookbook. But what Python Cookbook does give is an idiomatic feel of using Python3, when there are not all that many mentors out there to go around. So this is something very useful for others who are starting to use Python 3. It is not for learning the language, but it is for using the language well. Full Review  >

Rating: StarStarStarStarStar5.0

On Jun 25 Tom Hood wrote:
Full Review  >

Rating: StarStarStarStarStar5.0

On Jun 25 Eric Chou wrote:
Full Review  >

Rating: StarStarStarStarStar5.0

On Jun 13 Richard Parkin wrote:
Full Review  >

Rating: StarStarStarStarStar4.0

Receive free ebooks and videos in exchange for your reviews.

Join the O'Reilly Reader Review Program

Learn more >


Top Reviewers

Michal Konrad Owsiak, 94 Reviews

Santosh Shanbhag, 61 Reviews

Surachart Opun, 60 Reviews

Doron Katz, 57 Reviews

Shawn Day, 55 Reviews

See More Reviewers >

Featured Review

Android Open Conference 2011: Complete Video Compilation

Michal Konrad Owsiak wrote:
feels like you are there
I am not Android developer, I focus on the iOS development instead. But there was… Full Review >

Rating: StarStarStarStarStar5.0