Python Cookbook and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
Trade in Yours
For a 10.88 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Start reading Python Cookbook on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Python Cookbook [Paperback]

David Beazley , Brian K. Jones
4.3 out of 5 stars  See all reviews (7 customer reviews)
RRP: 32.50
Price: 25.02 & FREE Delivery in the UK. Details
You Save: 7.48 (23%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 15 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it tomorrow, 15 July? Choose Express delivery at checkout. Details


Amazon Price New from Used from
Kindle Edition 16.06  
Paperback 25.02  
Trade In this Item for up to 10.88
Trade in Python Cookbook for an Amazon Gift Card of up to 10.88, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

1 Jun 2013 1449340377 978-1449340377 3

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

Special Offers and Product Promotions

  • Spend 30 and get Norton 360 21.0 - 3 Computers, 1 Year 2014 for 24.99. Here's how (terms and conditions apply)

Frequently Bought Together

Python Cookbook + Learning Python + Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython
Price For All Three: 82.30

Buy the selected items together

Product details

  • Paperback: 706 pages
  • Publisher: O'Reilly Media; 3 edition (1 Jun 2013)
  • Language: English
  • ISBN-10: 1449340377
  • ISBN-13: 978-1449340377
  • Product Dimensions: 23.4 x 17.8 x 3.6 cm
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon Bestsellers Rank: 110,090 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description

Book Description

Recipes for Mastering Python 3

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.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4.3 out of 5 stars
4.3 out of 5 stars
Most Helpful Customer Reviews
12 of 12 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?
4 of 4 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?
1 of 1 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?
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