ACCU Home page ACCU Conference Page
Search Contact us ACCU at Flickr ACCU at GitHib ACCU at Facebook ACCU at Linked-in ACCU at Twitter Skip Navigation

Search in Book Reviews

The ACCU passes on review copies of computer books to its members for them to review. The result is a large, high quality collection of book reviews by programmers, for programmers. Currently there are 1949 reviews in the database and more every month.
Search is a simple string search in either book title or book author. The full text search is a search of the text of the review.
    View all alphabetically
Title:
Python Cookbook
Author:
Alex Martelli&David Ascher
ISBN:
0 596 00167 3
Publisher:
O'Reilly
Pages:
574pp
Price:
£28-50
Reviewer:
Tim Penhey
Subject:
python
Appeared in:
15-1
I was inspired to learn Python after readingThe Cathedral and the Bazaar. One of the major problems of trying to teach yourself another programming language just from books is that you often miss out on the idioms the fluent users of the language tend to use without even noticing. ThePython Cookbookis an excellent source of Python idioms.

Unlike some of the other O'Reilly cookbooks, thePython Cookbookis not so much filled with recipes, but with methods of cooking. Many of the entries are very simple and often show another way to approach a problem. There are well over 100 different contributors to the book.

The book is split up into sections of related 'recipes'. Each recipe has a brief introduction in the form of defining the problem; a solution is then shown, followed by a discussion of the solution. Often the discussions show tweaks to the solutions that are only available in the later versions of Python.

At least a rudimentary knowledge of Python is needed for this book. The book does not attempt to teach Python as a whole, but more specific tricks or idioms to do with the language.

One of my favourites is also due to first learning Perl. Declaring dictionaries (or hashes or maps or whatever you call them) can be a little verbose in Python and there is a nice two-line function that makes it a little more terse.

I find Python an interesting language and I think that thePython Cookbookwould be a great addition for anyone looking to learn the language. I have no reservations recommending this book.