Context
In January 2012, the transition from Python 2 to Python 3 was one of the community's great challenges. Python 3.2 was available but adoption remained slow. Many libraries had not yet been ported, and developers were looking for strategies to handle both versions.
What is this article about?
The article presents techniques for writing code compatible with both Python 2 and Python 3. It covers the key differences between the two versions and proposes concrete strategies for maintaining a single codebase that works on both branches.
Summary
Using the best of Python 2.x and Python 3.x within a single application
