- HEADLINE: Python 3 as default
- DESCRIPTION: In lieu of a description, I'll just link to this: https://pythonclock.org
- ROLE/AFFILIATION: Developer, sys admin
- HEADLINE: Python 3 as default
- DESCRIPTION: In lieu of a description, I'll just link to this: https://pythonclock.org
- ROLE/AFFILIATION: Developer, sys admin
Both versions can be installed concurrently. Python 2 is available under /usr/bin/python2 if it is installed. Python 3 is available under /usr/bin/python3 if it is installed.
/usr/bin/python points to Python 2 (or nothing, if Python 2 is not installed). This is the upstream recommendation from PEP 394 (https://www.python.org/dev/peps/pep-0394/) and I don't see Ubuntu diverging from this unless upstream's recommendation changes.
I imagine Ubuntu (Debian, et al) is following these guidelines. It would be cool to have a push for those who still depend not only on Python2 but on `/usr/bin/python` being py2 to update their app - or at least update their packaging :)
But thats my opinion of course. We need to move the industry forward eventually and 95% of useful plugins/modules have already been ported.
It's time for py3 as a first class citizen.
Generally it might be true that finally python 3 is now the default for new projects but that doesn't mean that there will be a switch to python 3 as default enviroment. There are still a lot of base libs which are not ported to python 3. Most often nobody has interest in porting them. Some are, but then often as a complete rewrite, which are not backwards compatible.
Until Python 3 is the default env it will take a few more years.
(What I mean is: sysadmins are aware of this and won't "just" upgrade to a new major version without considering such factors - at least they shouldn't do that ;) )
Ubuntu already switched from Python 2 to Python 3 and not many people feel "messed up" by this.
Python 3 is the only Python pre-installed on current versions of Ubuntu. All Ubuntu system utilities that use Python use Python 3. You have to install a separate package to get Python 2.