rank trend

Python Pocket Reference (Pocket Reference (O'Reilly))

by Mark Lutz
Released 2005-02-24
Read articles about Python
Buy it from AmazonNew for $9.95

13 Reviews

Sort by: Most Helpful ▲ Date Rating

4 stars A great reference

1999-03-17     24 of 24 found this review helpful

This is a very handy and nice-looking reference to Python. With concise documentation on most of the common modules and built-ins, I find it indispensible when I'm working quickly. This is a great little book to carry around in your bag, because it's small and unobtrusive.

Makes a great companion to the online documentation, and is a handy first reference. Complex questions should refer to the documentation, but this is great for quick questions.

5 stars Object achieved

2005-06-26     9 of 9 found this review helpful

While this is not the tool for learning Python, it is a valuable reference. It is amazing how much information that is packed into this small format. Toss it into your laptop bag for a quick reference, particularly since the third edition contains an index and covers Python 2.4.

With so many useful applications using Python as a macro language (e.g. Testmaker), this handy reference will earn its keep. I wonder if O'Reilly has a Ruby on the way, since they have mastered the format.

Of course, there is always the online documentation, if you are online.

3 stars needs an index!!!!! a 4 pg. index would still b pocket ref

2002-12-12     5 of 9 found this review helpful

its not bad but it could be great with an index.

5 stars Great reference - now with an index!

2007-11-21     3 of 3 found this review helpful

I read various reviews complaining about the lack of an index. Well, it does have one now and it complements perfectly what is a fantastic quick reference for many of your Python needs, from built-in modules to regular expressions. Of course, it does not include the formal grammar of the language, a complete reference of libraries available or anything other than quick pointers for someone who already knows what Python is but is not a guru yet (although anyone can forget how to open a file from time to time).

3 stars lack of index *really* hurts

2005-04-09     3 of 8 found this review helpful

I've used the Perl pocket reference for years, and I almost always start at the index. The lack of an index in this book is *really* annoying. The content is great, once you find what you're looking for.

A pocket reference without an index?? What were they thinking???

4 stars Meets its goals

2007-09-24     2 of 2 found this review helpful

This is a great book for anyone who uses Python, especially for programmers at that level of Python competence after the beginner stage but short of a master's fluency. It provides a brief but clearly organized summary of Python basics: the language, primitive data structures, printf and other control codes, and the basic, everyday subset of the support libraries. And, since the editors apparently listened to criticism of earlier editions, the third editions includes a useful index as well as table of contents.

Some readers will be disappointed that it's not the book that it never meant to be. It never meant to be a tutorial or text book, it never meant to be a full specification of the language and libraries, and it never meant to be an encyclopedic description of the many available libraries. Decide what you want: if that's a quick reminder of Python's most useful basics, then this book will meet your needs.

-- wiredweird

4 stars An Excellent Pocket Reference

2006-05-18     2 of 3 found this review helpful

I've not been too pleased with O'Reilly's Python material in general; it tends to be verbose and needlessly abstruse, but the Python Pocket Reference has proven itself an exception.

In ~150 pages, Mark Lutz manages to deliver an informative reference for the 2.4 version of the Python language, which I find myself referring to rather often. It's concise, well-organized, and easy to use. I've found this reference an invaluable tool in learning the Python language, as well.

The clarity of this reference will, doubtless, be a boon to any Python programmer.

1 stars Useless

2008-09-23     1 of 1 found this review helpful

After reading the excellent C++ Pocket Reference, I decided that this book was worth a try, but I was disappointed.

The last half of this book is a list of module functions, that are MUCH more easily accessed thrugh the online documentation. I wish it was more a reference about the language than about the built-in modules. I don't remember (and I can't find it in the book index!) reading explicitly how to add an attribute to a class, or other language-specific operations.

Being a pocket reference, the language should be concise, but sometimes it is so obscure to be nearly incomprehensible.

Let me also point out that it is more than three years old, so it was not updated to cover Python 2.5, and of couse the upcoming 2.6 and 3.0. Furthermore it tries to cover many versions, with even some references to the 9-year old 1.5 release. I believe the latest would have been enough.

In no way this can replace the modules online documentation, not even as a quick reference.

4 stars Great reference - No index.

2006-09-04     1 of 3 found this review helpful

It would be worth 5 stars if there was an index.

5 stars One of the greatest computer books of all time

2008-10-06     0 of 0 found this review helpful

Python is a fast and easy to use language, though learning how to think in python, especially if coming from a more c-style language can take a while regardless of what book you're reading. This book won't help you with that. What it will do, is provide you with most (if not all) of the most-advanced features of python in a way that is really easy to digest for an intermediate/upper-beginner level python programmer. This book explains things that are not easy to find on the web or not apparent that they even exist in python (because, let's face it, python can be pretty magical at times). This book can be the catalyst that puts you well on your way to becoming an advanced python programmer. And all that from a tiny reference book!

3 stars It has no index!

2007-09-17     0 of 0 found this review helpful

I concur with the other reviewers that this book contains useful information but IT HAS NO INDEX, and FINDING that useful information is non trivial.

What were O'Reillys thinking? If a third edition ever appears, and if it has an index I'd be glad to buy it as the book does seem to pack a lot of information into a small compass.

5 stars Great book for beginners

2007-09-02     0 of 0 found this review helpful

This reference book is great for any beginner. I have recently picked up Python as my first language and have found myself commonly grabbing my reference book, going to the index, and looking up what I need. This along with the Python in a Nutshell book are my saving grace.

4 stars Good ref

2005-04-23     0 of 0 found this review helpful

This is the third edition of the book. Content structure:


  • The first few pages summarize how to run Python (command line
    args, environment variables, etc).
  • The next 80 pages describe the core language itself (syntax,
    builtin types and functions, builtin class attributes, etc).
  • The following 50 pages describe the most essential modules of the
    Python standard library.
  • Finally, 5 pages summarise essential Python idioms and hints, and
    the 10 page index.

The biggest changes from the 2nd edition are:

  • the index, which according to 2nd ed reviews was sorrily missed,
  • the significant additions (20 pages worth) to the core section
  • coverage of Python 2.4.

The first (and possibly only important) question that comes to mind is, given the high quality of the online documentation that comes with standard Python, is the book worth having? The big attraction of the book is its coverage of the core language, in an easy to understand and compact "reference" style. Contrast this to the online version of the "Python Language Reference". Not only is the latter a full rather than a summary reference, but it is written in a comparatively terse style. Another advantage of the "pocket reference" is that you don't have to wade through a lot of information to find what you need - it's the bare bones, easily accessible from index.

The coverage of some of the most important standard modules is interesting but I don't think it offers much over the online docs. Actually, I would even replace those 50 pages with more extensive coverage of the core language, including class hierarchy diagrams (e.g. for exceptions), perhaps a table indicating major changes between Python versions, reference material for the unit testing, debugging and distribution modules.

Interestingly, the http://www.python.org/doc page links to a "Quick Reference" in HTML format that is quite comprehensive, very similar in coverage to the book, but with all the advantages of being in electronic format. The book seems slightly better structured. So the decision of buying the book might rely solely on whether or not you prefer to use index - fingers - paper vs search - click - screen. And whether you can wait for the next paperback edition to cover new Python language features as they come out.

The author achieves his goal: a reference in pocket format. The important content you would expect from a pocket format is there, it is well categorized and well indexed. If you are looking for a good compact reference summary of the Python language in paper format, this book should satisfy you.

Buy it from AmazonNew for $9.95