3 ms·
http://docs.python.org/dev/3.0/library/2to3.html http://docs.python.org/dev/3.0/library/2to3.html 2to3 will handle that automatically.
by shutter 18y ago
http://docs.python.org/dev/3.0/library/2to3.html http://docs.python.org/dev/3.0/library/2to3.html
2to3 will handle that automatically.
- ubernostrum 18y agoIt will handle that one, yes, but there are enough cases where the "best" transformation is ambiguous and so has to be determined heuristically that there'll still be plenty of work left over for human programmers (not to mention cases where 2to3 cannot determine a transformation at all, or cases where it can be fooled by code which uses 3.0-isms in 2.6 code, or the need to thoroughly test, re-test and test again to make sure everything still works).