Python is a widely used programming language which features two main branches: 2.x and 3.x.
Each of them uses its own syntax, not really that different between version, but different enough not to run except in its own branch.
While a recent survey has shown that 75% of all developers currently write more code in Python 2.x than in the newer 3.x branch, the 3to2 (or lib3to2) module can come in handy if you want to support your Python 3.x code in the older branch.
3to2 does nothing but to parse 3.x syntax and replace problematic operations with Python 2.x alternatives.
This way the application can also run in Python 2.x compilers and provide a broader usage scope for your code.
The code converted from Python 3.x syntax targets the syntax used with the Python 2.7.x platform.
The 3to2 module also comes in two variants, one that can be used on Python 3.x and another version that can be used from Python 2.x.
What is new in this release:
- Stable version.
Requirements:
- Python 2.7 or higher
Comments not found