Developer Reading List, July 01, 2014 The best summer reads.
by Oswald Campesato
There are three good primers in Python. The classic Learning Python by Mark Lutz, Zed Shaw's opinionated set of learning exercises, and for the complete novice, Think in Python. While all three are good reads, they all have specific limitations. Lutz's book is 1600 pages(!), Shaw's book teaches by assigning numerous small projects, and the Think volume is truly aimed at non-programmers. The Python Pocket Primer fills the yawning need for a concise guide written for programmers who need to get up to speed quickly on the language. It is supremely hands-on and wastes little time on non-essentials: From the opening chapter on setting up an environment, it speeds along with topic after topic explained clearly with supporting code and examples from the REPL. By page 60, you're into Python collections; by page 100, you've covered file handling; by page 140, you've worked with JSON. The remaining 50 pages cover more-involved topics such as working with databases and even some minimal concurrency.
The only missing topic is the set of considerations around building large projects in Python. Given that this book is a primer, though, this omission seems entirely reasonable.
Unlike other books that teach languages via the code snippets and REPL/console listings, this book seems to get the balance between explanation and demo exactly right. As a result, you can cruise along and quickly get to the point of using Python ably. The good explanations and the care with which they build successively on each other mean that it's comparatively easy to retain just-learned material as you push forward into new topics.
In sum, I think this unassuming little book is one of the fastest ways of getting up-to-speed in Python. And at $20, it's truly a bargain.