Dive Into Python by Mark Pilgrim has been updated for Python 3. The new version of the book covers Python 3 and the differences between it and Python 2. It's available in print, or as a free e-book.

Unlike the other free Python e-books we covered, Dive Into Python is geared towards experienced programmers. It's considered a classic among Python developers.

The book covers:

  • Installing Python
  • Native Datatypes
  • Comprehensions
  • Strings
  • Regular Expressions
  • Closures & Generators
  • Classes & Iterators
  • Advanced Iterators
  • Unit Testing
  • Refactoring
  • Files
  • XML
  • Serializing Python Objects
  • HTTP Web Services
  • Packaging Python Libraries
  • Porting Code to Python 3 with 2to3
  • Special Method Names