FICHA · AUR

3to2

Script to convert python3 code to python2. Counterpart to 2to3

  • developer-tool
  • CLI
  • PYTHON
  • CODE-CONVERSION
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 30, 2026 description in en

Description

Python 3 source code can be translated toward Python 2 syntax for legacy compatibility work. It is useful when maintaining old environments that cannot yet run modern Python.

Python 2 is end-of-life, so converted code should be reviewed carefully and used only when legacy constraints require it. Automated conversion can miss behavior differences.

How to run

3to2

Commands: 3to2

Permissions

Permissions not analysed for this source yet.