3 ms·
I hope it's better to use the 2to3 machinery as everyone said in comments Here 2to3 machinery doc -> https://docs.python.org/3.9/library/2to3.html https://docs.
by 1nj3ct0r 5y ago
I hope it's better to use the 2to3 machinery as everyone said in comments
Here 2to3 machinery doc -> https://docs.python.org/3.9/library/2to3.html https://docs.python.org/3.9/library/2to3.html
- punnerud 5y agoIsn't 2to3 only for converting Python2 to Python3 code? Could possibly be used for code replacement in Python3, but does not seem like that is the purpose. From the bottom of the page on your link: "The lib2to3 module may be removed from the standard library in a future Python version."