Start reading Python Cookbook on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Python Cookbook

Python Cookbook [Kindle Edition]

David Beazley , Brian K. Jones
4.3 out of 5 stars  See all reviews (7 customer reviews)

Print List Price: £33.50
Kindle Price: £18.71 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £14.79 (44%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.


Amazon Price New from Used from
Kindle Edition £18.71  
Paperback £22.78  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Product Description

Book Description

Recipes from the Python Community

Product Description

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.

Inside, you’ll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.

Topics include:

  • Data Structures and Algorithms
  • Strings and Text
  • Numbers, Dates, and Times
  • Iterators and Generators
  • Files and I/O
  • Data Encoding and Processing
  • Functions
  • Classes and Objects
  • Metaprogramming
  • Modules and Packages
  • Network and Web Programming
  • Concurrency
  • Utility Scripting and System Administration
  • Testing, Debugging, and Exceptions
  • C Extensions

Product details

  • Format: Kindle Edition
  • File Size: 1707 KB
  • Print Length: 708 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 3 edition (10 May 2013)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon Bestsellers Rank: #136,722 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Authors

Discover books, learn about writers, and more.

Customer Reviews

4.3 out of 5 stars
4.3 out of 5 stars
Most Helpful Customer Reviews
15 of 15 people found the following review helpful
4.0 out of 5 stars The Python Domestic Science Textbook? 23 Jun. 2013
A few years ago now I was working in a job that required me to code in PERL. My PERL is passable but no better than that so when I found a copy of the PERL cookbook it was something of a life saver and constant companion. The PERL cookbook is deeply pragmatic and addresses real world problems with the language almost as an afterthought. (Which now I think about is actually a pretty good description of PERL anyway!) The Python cookbook is a very different beast and is much more an exercise in learning the intricacies and nuances of the language. I'm not sure cookbook is the right title - if the PERL Cookbook is a cookbook then the Python Cookbook is more of a domestic science textbook. A bit deeper, a bit dryer and not so focused on immediate problems. This is no way meant to imply that it's a bad book, on the contrary it's a very good book just not entirely what I was expecting.

The book itself is divided into fifteen large sections covering the likes of data structures and algorithms; functions; metaprogramming and concurrency with each section consisting of a number of problems. The problems are structured as a definition of the problem, a solution and a discussion of the solution and how it can be extended. Due to the nature of the Python language a large part of solving the problems lies in knowing which module(s) to include in your code so each problem is generally only a couple of pages, but that is certainly enough to give the solution and reasonably detailed discussion. As with all books of this type there is going to be some complaints of why is X included and not Y and to be honest if you tried to cover all the possible problems a practicing python programmer is likely to run across the book would end up so large as to be unusable.
Read more ›
Comment | 
Was this review helpful to you?
5 of 5 people found the following review helpful
4.0 out of 5 stars Good for converting to Python 27 Jun. 2013
Format:Paperback|Verified Purchase
This is another cook book of code snippets and explanations and covers Python 3 in this third edition.

The book is structured in sections starting with the basic language constructs (variables, functions and so on), before getting into more detailed examples on classes, networking, Internet, concurrency and a good section on testing and debugging (all code must be well documented).

As someone converting from PHP this has been a revelation in that each section of code snippets has a 'discussion' section to explain the 'why' as wel as the 'how. Other books tell you what/how but rarely the 'why' as this does. Recommended.

As it is a cook book, it's not been read cover to cover but the possibility is there.
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
5.0 out of 5 stars Excellent overview of Python 3 2 April 2014
Format:Paperback|Verified Purchase
This is a really excellent review of Python 3 for those, like me, who have been brought up on Python 2. Section by section, the book describes how to solve programming tasks in a pythonic way, taking advantage of the elegant features made available in the new version of the language. Learning by doing!
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Just buy it! 9 Feb. 2014
Format:Paperback|Verified Purchase
This is by far the best companion for a Python (3) developer. It contains so much recipes and so much advice that using it it's just a pleasure. You are able to produce super elegant code, minimising the lines of code and maximising the code readability. I suggest it to everybody is already a bit proficient in Python and just wants to acquire more immediate and elegant way of coding. Let's say this is a book for who really wants to produce beautiful pythonic code.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category