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

It’s Python, Not Python 2, Not Python 3

There’s no “Python 2” or “Python 3”, the language is same as before. Python 2.x is legacy, Python 3.x is the present and future of the language — Python2 or Python3 This whole debate makes newcomers to run away, it’s confusing, nonsense and ...

Read more »