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. The book is now complete, but feedback is always welcome.

Table of Contents (expand)

Also available on dead trees!
Dive Into Python 3
Pre-order now, get it October 16th!

  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
  16. HTTP Web Services
  17. Case Study: Porting chardet to Python 3
  18. Packaging Python Libraries
  19. Porting Code to Python 3 with 2to3
  20. Special Method Names
  21. Where to Go From Here

The book is freely licensed under the Creative Commons Attribution Share-Alike license. You can download it as HTML or PDF. Über-geeks can also clone the Mercurial repository:

you@localhost:~$ hg clone diveintopython3

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

© 2001–9 Mark Pilgrim