Jump to ratings and reviews
Rate this book

Python Pocket Reference

Rate this book
Python is optimized for quality, productivity, portability, and integration. Hundreds of thousands of Python developers around the world rely on Python for general-purpose tasks, Internet scripting, systems programming, user interfaces, and product customization. Available on all major computing platforms, including commercial versions of Unix, Linux, Windows, and Mac OS X, Python is portable, powerful and remarkable easy to use.With its convenient, quick-reference format, Python Pocket Reference , 3rd Edition is the perfect on-the-job reference. More importantly, it's now been refreshed to cover the language's latest release, Python 2.4. For experienced Python developers, this book is a compact toolbox that delivers need-to-know information at the flip of a page. This third edition also includes an easy-lookup index to help developers find answers fast!Python 2.4 is more than just optimization and library enhancements; it's also chock full of bug fixes and upgrades. And these changes are addressed in the Python Pocket Reference , 3rd Edition. New language features, new and upgraded built-ins, and new and upgraded modules and packages--they're all clarified in detail.The Python Pocket Reference , 3rd Edition serves as the perfect companion to Learning Python and Programming Python .

148 pages, Paperback

First published January 1, 1998

235 people are currently reading
704 people want to read

About the author

Mark Lutz

20 books59 followers
Mark Lutz is the world leader in Python training, the author of Python's earliest and best-selling texts, and a pioneering figure in the Python community.

Mark is the author of the popular O'Reilly books Programming Python, Python Pocket Reference, and Learning Python, all currently in 4th Editions. He has been using and promoting Python since 1992, started writing Python books in 1995, and began teaching Python classes in 1997. As of mid 2010, Mark has instructed some 250 Python training sessions, taught some 4,000 students, and written Python books which have sold roughly a quarter of a million copies and been translated to over a dozen languages.

Together, his Python efforts since 1992 have helped to establish it as one of the most widely-used programming languages in the world today. In addition, Mark holds BS and MS degrees in computer science from the University of Wisconsin where he explored implementations of the Prolog language, and over the last 25 years has worked as a professional software developer on compilers, programming tools, scripting applications, and assorted client/server systems.

Mark maintains an additional book support site on the web at www.rmi.net/~lutz.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
269 (36%)
4 stars
268 (36%)
3 stars
159 (21%)
2 stars
26 (3%)
1 star
11 (1%)
Displaying 1 - 27 of 27 reviews
Profile Image for Russel.
40 reviews4 followers
October 19, 2012
This book has been war-torn by me over the last couple of years as Python is my favourite scripting language which I use on a pretty well daily basis. I love going through this book over and over again learning more and more oddities and pecularities of the language, striving to always be more and more pythonic.
Profile Image for Kim.
225 reviews2 followers
April 21, 2014
I'm a pretty concrete thinker and tend to take things literally. While this is a good reference for confirming syntax, etc., the language used in some of the explanations has an abstractness to it that I found difficult. Where the information itself could have been formated to demonstrate or reiterate the explanation, it often isn't.

'''This is a multiline block'''

... is written on a single line. I reread it more than once because I thought maybe I was misinterpreting. I would've immediately been confident that I understood if it had instead been:

'''
This is a
multiline
block
'''

Table 1 has descending order for ascending precedence of operators, and it would've been lovely if it had been arranged to be ascending-ascending or descending-descending instead, reducing the need for the confusing explanation about "lower cells of this table have higher precedence".
253 reviews3 followers
April 11, 2020
This is a good reference for Python. The biggest drawback is that it isn't current with the latest version of Python. It also has to deal with the challenge of the two major versions of Python that have a large number of differences that aren't easy to characterize. This can lead to a fragmented presentation in some areas. I would actually prefer if the latest 3.0 version were presented with perhaps a compendium of differences as an attachment rather than constantly trying to process two different approaches. But I don't have to deal with Python 2.x and this is a reference.

I was also a bit dismayed that some questions about overall program structure are addressed at the end of the book. I'd like to see them up front since they are some of the first things you have to deal with.
7 reviews
June 11, 2017
Just a reference book. Most of the things, which are available in language documentation, are listed here or briefly described. Some of those descriptions are great because cruft you don't care about (and it's often present in official docs) isn't there and meaningful things are even more packed.

If you don't have Internet access, documentation in you PC or you rather look up books for reference then this is "must buy" for you. It may be also helpful for those who know programming in general and want to read fast about Python' features.

Also font is quite big.
Profile Image for knoba.
138 reviews
April 4, 2019
.
.
Contents
Introduction
Book Conventions
1. Python Command-Line Usage
2. Python Environment Variables
3. Python Windows Launcher Usage
4. Built-In Types And Operators
5. Specific Built-In Types
6. Statements And Syntax
7. Specific Statements
8. Namespace And Scope Rules
9. Object-Oriented Programming
10. Operator Overloading Methods
11. Built-In Functions
12. Built-In Exceptions
13. Built-In Attributes
14. Standard Library Modules
15. Python Sql Database Api
16. More Hints And Idioms
Index
Profile Image for Kent.
67 reviews3 followers
January 19, 2009
I like this book, find it handy -- but why, oh why, would you make a book called a reference and not make it ridiculously easy to find stuff? The page layout is awful and the headings are incredibly weak.
Profile Image for Bernard.
8 reviews
January 1, 2016
If you have some programming knowledge, then this is like all of the Python documentation stripped down to the most essential parts and shrunken down into great pocket-sized book. It has information for both Python 2.x and Python 3.x and is well worth the price.
Profile Image for Sergey Kochergan.
247 reviews45 followers
November 29, 2014
hard to follow the logic of this book. would not recommend it to those, who learn python language. Don't waste your time.
Profile Image for Victor.
72 reviews9 followers
September 4, 2015
good reference book for quick and easy doubts, however if you want to get a more detailed description of the language go for the complete book from O'Reilly
Profile Image for Fernando Conde-Pumpido.
45 reviews4 followers
July 27, 2017
Good book for quick reference, specially if you are new to the language.

It's a good companion to keep on your desk, so you can code as usual and not worry about specifics of syntax, because all you might need is in this book.
Profile Image for Ida.
221 reviews40 followers
November 2, 2023
Had to give up in the middle because I'm learning with a newer version

But from what I've seen it does what the title promises: pocket reference

I liked the unclotted format, the structure of the chapters and the page size that makes it into an actual pocket reference.
Profile Image for Ibrahim.
6 reviews
August 16, 2018
A good handy python pocket reference for advanced programmers
Profile Image for Xuankang Lin.
67 reviews3 followers
March 27, 2021
Only covers up to Python 3.4, already outdated as of 03/2021.
12 reviews13 followers
May 31, 2022
It's a good reference. Decent for reading through to remind yourself of the various options in python.
Profile Image for David Liu.
2 reviews1 follower
September 20, 2016
Informative and well structured

This book is really good for general reference and best practices of Python programming. Highly recommend for new and experienced Pythonists!
Profile Image for Cynbel.
90 reviews7 followers
April 26, 2013
This has already become a great reference to use for me, easier to use this than Python's documentaion, which is a pain to use when trying to find even simple things because it is terribly organized or at least to me it is.
1 review1 follower
Read
June 5, 2008
Python is a very easy language to learn, but has several constructs and functions that don't seem too well-thought-out.
Profile Image for Phil Moyer.
24 reviews3 followers
January 10, 2016
A good handy companion to Lutz's Learning Python. This gives you a quick way to look up syntax or language constructs you don't quite remember!
Profile Image for Barry.
29 reviews
April 24, 2015
Useful when doing quick Python searches - I program offline sometimes, and this comes in handy.
Displaying 1 - 27 of 27 reviews

Can't find what you're looking for?

Get help and learn more about the design.