Porting to Python 3¶
- About this book
- Foreword
- Welcome to Python 3
- Migration strategies
- Preparing for Python 3
- Porting with 2to3
- Common migration problems
- Improving your code with modern idioms
- Supporting Python 2 and 3 without 2to3 conversion
- Migrating C extensions
- Extending 2to3 with your own fixers
- Language differences and workarounds
- apply()
- buffer()
- callable()
- Classes
- Comparisons
- coerce() and __coerce__
- Dictionary methods
- except
- Exception objects
- exec
- execfile
- file
- filter(), map(), range() and xrange()
- Imports
- Indentation
- input() and raw_input()
- Integer division
- long
- Metaclasses
- .next()
- Parameter unpacking
- raise
- repr() as backticks.
- Slice operator methods
- Sorting
- StandardError
- String types
- Reorganizations and renamings
