2 ms·
I'm not sure there's a compelling reason to upgrade old, working code to Python 3. The cost of having Python2 and Python3 installed on the same machine is minu
by jlarocco 15y ago
I'm not sure there's a compelling reason to upgrade old, working code to Python 3. The cost of having Python2 and Python3 installed on the same machine is minuscule. The hardest part is making sure scripts use "#!/usr/bin/env python2" or "#!/usr/bin/env python3" appropriately. Even on Windows, the "Python launcher for Windows" [1] will launch the correct version of Python.
My rule of thumb is write new stuff in Python 3, keep old stuff on Python 2 unless I have to rewrite it for some reason anyway.
Upgrading just to upgrade seems like developer problem more than a technical problem.
[1] http://blog.python.org/2011/07/python-launcher-for-windows_11.html http://blog.python.org/2011/07/python-launcher-for-windows_1...