You are here:  

Dive Into Python 3

Dive Into Python 3 covers Python 3 and its differences from Python 2. Compared to Dive Into Python, it’s about 20% revised and 80% new material. I am publishing drafts online as I go. Please send feedback. The final version will be published on paper by Apress. The book will remain online under the CC-BY-SA-3.0 license.

Table of Contents (expand)

  1. What’s New in “Dive Into Python 3”
  2. Installing Python
  3. Your First Python Program
  4. Native Datatypes
  5. Comprehensions
  6. Strings
  7. Regular Expressions
  8. Closures & Generators
  9. Classes & Iterators
  10. Advanced Iterators
  11. Unit Testing
  12. Refactoring
  13. Files
  14. XML
  15. Serializing Python Objects (in progress)
  16. HTTP Web Services
  17. Threading & Multiprocessing (in progress)
  18. Case Study: Porting chardet to Python 3
  19. Packaging Python Libraries (in progress)
  20. Where to Go From Here
  21. Porting Code to Python 3 with 2to3
  22. Special Method Names

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