Forum Archive

2to3?

karthikmaiya

Can pythonista convert python 2 code to python 3 code?

JadedTuna

Haven't tried this, but I think you can use 2to3 on Pythonista.

dgelessus

I checked, and both 2to3 and the lib2to3 module don't appear to be included with Pythonista. Like most of the other modules that omz either forgot to include or intentionally omitted, they can be obtained from http://hg.python.org/ and installed manually to site-packages. (or, in the case of 2to3, run directly.)

karthikmaiya

How would i download it and run it from hg.python.org