Definition
A tool that tries to convert Python 2.x code to Python 3.x code by handling most of the incompatibilities which can be detected by parsing the source and traversing the parse tree.
2to3 is available in the standard library as lib2to3
; a standalone
entry point is provided as Tools/scripts/2to3
. See
2to3 — Automated Python 2 to 3 code translation.