Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Python Cookbook First Edition
- ISBN-100596001673
- ISBN-13978-0596001674
- EditionFirst Edition
- PublisherO'Reilly Media
- Publication dateJuly 1, 2002
- LanguageEnglish
- Dimensions7 x 1 x 9 inches
- Print length606 pages
Customers who viewed this item also viewed
Editorial Reviews
About the Author
Alex Martelli spent 8 years with IBM Research, winning three Outstanding Technical Achievement Awards. He then spent 13 as a Senior Software Consultant at think3 inc, developing libraries, network protocols, GUI engines, event frameworks, and web access frontends. He has also taught programming languages, development methods, and numerical computing at Ferrara University and other venues. He's a C++ MVP for Brainbench, and a member of the Python Software Foundation. He currently works for AB Strakt, a Python-centered software house in Gteborg, Sweden, mostly by telecommuting from his home in Bologna, Italy. Alex's proudest achievement is the articles that appeared in Bridge World (January/February 2000), which were hailed as giant steps towards solving issues that had haunted contract bridge theoreticians for decades.
David Ascher is the lead for Python projects at ActiveState, including Komodo, ActiveState's integrated development environment written mostly in Python. David has taught courses about Python to corporations, in universities, and at conferences. He also organized the Python track at the 1999 and 2000 O'Reilly Open Source Conventions, and was the program chair for the 10th International Python Conference. In addition, he co-wrote Learning Python (both editions) and serves as a director of the Python Software Foundation. David holds a B.S. in physics and a Ph.D. in cognitive science, both from Brown University.
Product details
- Publisher : O'Reilly Media; First Edition (July 1, 2002)
- Language : English
- Paperback : 606 pages
- ISBN-10 : 0596001673
- ISBN-13 : 978-0596001674
- Item Weight : 1.85 pounds
- Dimensions : 7 x 1 x 9 inches
- Best Sellers Rank: #3,995,424 in Books (See Top 100 in Books)
- #4,056 in Python Programming
- #7,731 in Internet & Telecommunications
- #14,832 in Computer Software (Books)
- Customer Reviews:
About the authors

Discover more of the author’s books, see similar authors, read book recommendations and more.

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Recipes are organized in seventeen chapters. Chapters begin with short introduction on the topic covered, and is well worth the reading alone (even if you're primarily interested on a specific recipe take the time and read the introduction text). Each recipe is comprised of four sections: Problem definition -> Solution (code) -> Discussion -> Pointers to other relevant recipes or material.
No matter how proficient you're at coding in Python you'll certainly found some useful tips, new approaches or coding techniques. Usually technical books have strong and weak parts which I point out in my reviews, this one is different. As someone before me stated, this book is all meat and no fat. What else do you want from your diet?
When I first met Alex Martelli, at Think3, he was one of the oldest and most experienced programmers of the company, a programmer who had already used most of the existing languages and had used these languages for the development of large and complex applications, the kind of projects that took months or years to complete. He knew Perl very, _very_ well and was used to rely on a robust, elegant and sophisticated language like C++ for the development of his applications (like Think3's Thinkdesign, a very complex 3D CAD program). He was writing a _lot_ of software, using a large array of different languages and tools. He was a well respected internal consultant at Think3, charged to solve difficult problems related to the software architecture of the program being developed. He was not an easy guy to impress with "yet another small language".
Despite this, Python has gained some room in his heart. I consider this fact as one of the most significant success of this elegant and powerfull language. To be completely honest, I'm not completely surprised by this ending.
Alex Martelli is the kind of scientist and professional that appreciate elegance, wherever he can see it. The taste for elegance, the ability to take pleasure in elegance, is an important part of the scientist and engineer personality. It is hard to be a really good software professional without having any kind of interest for elegance. When you need a simple tool that can face complex problems, you are asking for elegance. When you need a language that leave you with maintenable code, you are asking for elegance. When you want a single language for a wide array of applications, you are asking for elegance. Python can supply you with all the elegance you can ever ask for.
Alex's and David's book is a collection of good techniques that you can use to face a large set of problems with Python, from text transformation to GUI building to OpenGL grahics. You will not find here an introductory book, rather you will find a good second-reading book, the kind of book that can take you from the beginner level to the advanced. It is also the kind of book that can widen your knowledge of the Python world, showing you how this modern language can easily deal with problems that you usually face with C++ or the like.
If you are looking for an introductory book, buy "Learning Python" by Mark Lutz and David Ascher: it is the best one for this task. If you already know Python, buy this book and see how much you still do not know about it.
This book has garnered rave reviews on comp.lang.python, the internet newsgroup devoted to Python. Some examples:
"The book is uniformly fantastic, congratulations to the authors!"
"I should note that this is not much like a usual Cookbook, which offers quick "do things this way" recipes to follow, almost blindly. Instead it offers deep discussions of various approaches and uses state-of-the-art techniques (e.g., list comprehensions) that may not be at all obvious to newcomers."
"I would recommend something like Learning Python as a first book. But then Python Cookbook is the second book to get, or the first for those who have been with the language a while."
"I am sure it will be a long time before I have exhausted it. As someone whose recipes were accepted for publication I can only say that, given all the changes and enhancements, the editors were generous in their credits."
"You could actually leave out the code, change the title to 'The Python Philosophy' and still have a really valuable book."
To which the reply was:
"Nowhere quite as valuable, in my humble opinion. It's not just the 200+ recipes, it's the numerous snippets that show very directly how to do one thing or another... then, sure, the text can also be quite helpful by showing what is going on, what's preferable under what conditions, and so on..."
The general consensus seems to be summed up in this posting:
"If you are serious about Python then get this book."
To which I replied:
"I couldn't agree more. I won't embarrass myself by telling all the things I learned in the first chapter. This really is an awe-inspiring book for the breadth of its coverage and the complete excellence of its presentation. The authors and especially the editors deserve the highest praise. Even when explaining the most elementary topics the editors manage to be interesting and even surprising. I have already turned down the corners dozens of pages that I want to study in detail. In short, this is just a superb job. It shows the power of a community of users enhanced by the editing of all-stars."
About the reviewer: Edward K. Ream has more than 30 years of programming experience and is the author of a major application written in 100% pure Python. While working on this project he has benefited greatly from the help given on comp.lang.python, often by the contributors and editors of the Python Cookbook.
Top reviews from other countries
An excellent source of facts, ideas, and inspiration - exactly what a cookbook should be.

