- Paperback: 706 pages
- Publisher: O'Reilly Media; 3 edition (June 1, 2013)
- Language: English
- ISBN-10: 1449340377
- ISBN-13: 978-1449340377
- Product Dimensions: 7 x 1.4 x 9.2 inches
- Shipping Weight: 2.7 pounds (View shipping rates and policies)
- Average Customer Review: 4.6 out of 5 stars See all reviews (81 customer reviews)
- Amazon Best Sellers Rank: #16,140 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Python Cookbook, Third edition 3rd Edition
Use the Amazon App to scan ISBNs and compare prices.
Prepare for your professional certification with study guides and exam prep tools from Wiley. See more
Frequently bought together
Customers who bought this item also bought
Recipes from the Python Community --This text refers to an out of print or unavailable edition of this title.
About the Author
David Beazley is an independent software developer and book author living in the city of Chicago. He primarily works on programming tools, provide custom software development, and teach practical programming courses for software developers, scientists, and engineers. He is best known for his work with the Python programming language, for which he has created several open-source packages (e.g., Swig and PLY) and authored the acclaimed Python Essential Reference. He also has significant experience with systems programming in C, C++, and assembly language.
Brian K. Jones is a system administrator in the department of computer science at Princeton University.
Browse award-winning titles. See more
If you are a seller for this product, would you like to suggest updates through seller support?
Top Customer Reviews
For example, as early as chapter 1, you're introduced to advanced unpacking techniques available in Python 3:
head, *tail = elems
The equivalent in Python 2 is:
head, tail = elems, elems[1:]
The chapter on generators and iterations techniques alone is worth the price of this book. It shows you how to "Loop Like a Native", all the way through using partial function application combined with lambdas to lazily loop over the contents of a file, ending when there's nothing left to read. Elegant!
There's more gems here, but I'll leave them for you to discover. The authors did a wonderful job of putting this book together, and I highly recommend this to anyone interested in becoming an effective Pythonista!
This book has showed me how to do a lot of new things, and even if I already knew how to do something, now I know how to do it better, faster, cleaner, or more robustly.
The book is also well written. Finding the material, and reading through the narratives for particular snippets of code is very clear, there's rarely a need to go back to re-read anything, ideas are conveyed simply but effectively.
I own a bunch of other Python books, but they all have a time and place in your learning process. This book spans so much material, that it is much more universal; I keep going back to it to look things up, sometimes for no other reason but to verify that I'm on the right path.
I just bought this today. Unlike some early technical Kindle books I've purchased, the formatting is excellent. Kudos to the authors and publisher. But when I first browsed the content with Kindle-Android on my 7" tablet (Nexus), I still found it frustrating to read. Next, I tried my laptop with a 14" screen - better. And then tried it on my PC with a large monitor and found reading and jumping around the content much more productive and pleasurable. Switched back to the tablet, I changed the text settings to minimums for font size, margin size, line spacing and entered full-screen mode. Result: much better! That said, I still found the much larger screen area on my PC monitor preferable.
Bottom Line: Buy this for great Python 3.3 code and advice in a flexible format.
When he discusses a problem, Beazley gives you his favorite solution. He also presents alternatives, discusses pros and cons, and calls your attention to subtle details in the solution --- leaving you with a feeling of having learned something of value.
But that's only the beginning. It's hard to describe the pleasure of reading some of the solutions in the Iterators and Generators section, for instance. Actually, I take that back. The pleasure is the same kind as what you may have felt when you first came upon ideas in books such as Bentley's Programming Pearls, way back when.
I hadn't felt that excited about a programming book in a long time. This is one you can take along with you on a weekend just for the pleasure of sipping from it. Sad to say, but there are many O'Reilly books I feel like passing on soon after acquiring them. This one will have a special place on the shelves.
Don't expect to get much from this book if you are new to Python. But for the seasoned Python programmer, this book will teach you new tricks and live by your desk as a constant reference. This book includes chapters full of various things you might want to "cook up" in your Python program, each example with an extensive discussion about it. Each chapter is very organized and it's quick to find exactly what you need.
I own a printed copy of the book, and the quality of the typesetting and printing was done very well on my copy.