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!

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
22. Troubleshooting

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 Git repository:

    you@localhost:~$ git clone git://github.com/diveintomark/diveintopython3.git

© 2001–11 Mark Pilgrim

Translations: en español, in italiano, на русском языке, به پارسی, česky