25.4. 2to3-Automated Python 2 to 3 code translation–Python 2.7.13 documentation

2to3 is a Python program that reads Python 2.x source code and applies a series
of fixers to transform it into valid Python 3.x code. The standard library
contains a rich set of fixers that will handle almost all code. 2to3 supporting
library lib2to3 is…

Similar

Stop naming your Python modules “utils”

Imagine the following situation: there is a software developer that is either adding new code or refactoring existing one by extracting a class/function. They have to place code somewhere, but it does not seem to fit anywhere. So what does a developer do?... (more…)

Read more »