Python Essential Reference (4th Edition)
About This Book
Python Essential Reference is the definitive reference guide to the Python programming language — the one authoritative handbook that reliably untangles and explains both the core Python language and the most essential parts of the Python library.
Designed for the professional programmer, the book is concise, to the point, and highly accessible. It also includes detailed information on the Python library and many advanced subjects that is not available in either the official Python documentation or any other single reference source.
Thoroughly updated to reflect the significant new programming language features and library modules that have been introduced in Python 2.6 and Python 3, the fourth edition of Python Essential Reference is the definitive guide for programmers who need to modernize existing Python code or who are planning an eventual migration to Python 3. Programmers starting a new Python project will find detailed coverage of contemporary Python programming idioms.
This fourth edition of Python Essential Reference features numerous improvements, additions, and updates:
- Coverage of new language features, libraries, and modules
- Practical coverage of Python's more advanced features including generators, coroutines, closures, metaclasses, and decorators
- Expanded coverage of library modules related to concurrent programming including threads, subprocesses, and the new multiprocessing module
- Up-to-the-minute coverage of how to use Python 2.6's forward compatibility mode to evaluate code for Python 3 compatibility
- Improved organization for even faster answers and better usability
- Updates to reflect modern Python programming style and idioms
- Updated and improved example code
- Deep coverage of low-level system and networking library modules — including options not covered in the standard documentation
There are quite a few good books online. These have a broad scope, similar to O'Reilly's "Learning Python":
Python.org maintains two lists of for learning python, depending on your level of programming expertise:
I highly recommend "Python Essential Reference" by David Beazley. You might find this sufficient if you're an experienced programmer and want a concise and comprehensive overview of the language. If you're a novice programmer this probably won't provide enough hand-holding. While I learned Python from other books, this is—by far—the most useful python book I own. Some notes:
Note: I originally posted the same/similar answer to: https://stackoverflow.com/questions/934937/concise-python-book-recommendation/935081#935081
I was asked to put a copy of my answer here.
I've recently had to make a similar transition for work reasons, and it's been pretty painful. For better or worse, Python has a very different philosophy and way of working than Perl, and getting used to that can be frustrating. The things I've found most useful have been
use strict
you will feel crippled, and you will make many elementary mistakes which will appear as runtime errors. I recommend nose rather than the unittest framework that comes with the core install. unittest is very verbose if you're used to Test::More.Personally, I found Dive Into Python annoying and patronising, but it's freely available online, so you can form your own judgment on that.