You are here:  

Dive Into Python 3

Dive Into Python 3 will cover Python 3 and its differences from Python 2. Compared to the original Dive Into Python, it will be about 50% revised and 50% new material. I will publish drafts online as I go. The final version will be published on paper by Apress. The book will remain online under the CC-BY-SA-3.0 license.

You can see the full table of contents (not finalized), or read what I’ve written so far:

  1. Installing Python
  2. Your First Python Program
  3. Native Datatypes
  4. Strings
  5. Regular Expressions
  6. Generators
  7. Iterators
  8. Advanced Iterators
  9. Unit Testing
  10. Test-first programming
  11. Refactoring
  12. Files
  13. HTML processing
  14. XML processing
  15. Web services
  16. Metaclasses
  17. Performance tuning
  18. Packaging Python libraries
  19. Creating graphics with the Python Imaging Library
  20. Where to go from here
  21. Case Study: Porting chardet to Python 3
  22. Porting Code to Python 3 with 2to3

There is a changelog, a feed, and discussion on Reddit. During development, you can download the book by cloning the Mercurial repository:

you@localhost:~$ hg clone http://hg.diveintopython3.org/ diveintopython3

The final version will be downloadable as HTML and PDF.

This site is optimized for Lynx just because fuck you.
I’m told it also looks good in graphical browsers.

© 2001–9 Mark Pilgrim