Search code examples
python-3.xpython-2.7modulepython-2to3

How much accuracy does 2to3 Python module has to convert files?


I have whole project to convert from Python 2.x to 3.x. So can I go ahead & convert it by just 2to3 module?


Solution

  • As you have said that you have to convert whole module there can be some warnings and some errors but they still refactoring is possible. For reference you can always go to "https://docs.python.org/2/library/2to3.html#module-lib2to3" and "https://docs.python.org/2/library/doctest.html".