Porting to Python 3 - The Book Site

Contents | index

Porting to Python 3: An in-depth guide¶

Porting to Python 3 doesn’t have to be daunting. This book guides you through the process of porting your Python 2 code to Python 3, from choosing a porting strategy to solving your distribution issues. Using plenty of code examples is takes you cross the hurdles and shows you the new Python features.

Contents¶

  • 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
  • Reorganizations and renamings

There is also a list of Errata, still fairly short.

About the Author¶

Lennart Regebro, has been a full time Python developer since 2001 and has been porting to Python 3 since early 2008.

If you have any questions mail regebro@gmail.com .

The book gets right to the point, without a lot of fluff and filler
Doug Hellmann
A concise, well-organised and complete reference
Richard Jones

spacer

If you like this book, but don't want to buy a paper copy, you can still show your support. spacer

Search

Enter search terms or a module, class or function name.

Contents | index
© Copyright 2011, Lennart Regebro.
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.