Lurker News
Howdy HackerNews!

Dustin Kirkland here, Product Manager for Ubuntu as an OS platform (long time listener, first time caller).
I'm interested in HackerNews feedback and feature requests for the Ubuntu 17.10 development cycle, which opens up at the end of April, and culminates in the 17.10 release in October 2017. This is the first time we've ever posed this question to the garrulous HN crowd, so I'm excited about it, and I'm sure this will be interesting!
Please include in your replies the following bullets:
- FLAVOR: [Ubuntu Desktop, Ubuntu Server, Ubuntu Core]
- HEADLINE: 1-line description of the request
- DESCRIPTION: A lengthier description of the feature. Bonus points for constructive criticism ;-)
- ROLE/AFFILIATION: (Optional, your job role and affiliation)
We're super interested in your feedback! Everything is fair game -- Kernel, Security, Desktop apps, Unity/Mir/Wayland/Gnome, Snap packages, Kubernetes, Docker, OpenStack, Juju, MAAS, Landscape, default installed packages (add or remove), cloud images, and many more I'm sure I've forgotten...
17.10 will be our 3rd and final "developer" release, before we open the 18.04 LTS (long term support, enterprise release) after October 2017 (and release in April 2018), so this is our last chance to pull in any big, substantive changes.
Thanks, HN!
:-Dustin
https://twitter.com/dustinkirkland

Comments (1,145) 458 threads

Show all comments

Showing thread 16 of 458

lucky_cloud4 replies#
- FLAVOR: Ubuntu Server

- 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

tobltobs2 replies#
Wouldn't this mess up a lot of current server installations?
raverbashing#
You can't update a major version and expect things like this to not change

(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 ;) )

rspeer1 reply#
It already happened, so probably not.
tobltobs1 reply#
Hard to decipher what you mean. Maybe you want to say, that is already the default, but as this is obviously wrong you probably want to say, that Python 3 is kind of default now. Which might be true for new projects, but this doesn't have anything to do with the default env for servers. So maybe you did already messed up your server with a python version default change and you want to express that this can not happen to you anymore.

Continue this thread — 1 reply

hyperknot1 reply#
Opposing view: This would make me stay on 16.04 LTS for a long long time.
thom_nic2 replies#
Can you explain why? Assuming you could still `apt-get install python27` and `update-alternatives` to symlink that back to the default `python`, no?
hyperknot1 reply#
The default Python on any system is the only one which is really well tested and works with all the not-trivial-to-compile packages. Making py3 the default is exactly for deprecating py2 support, thus an apt-get install python27 would never have the wide range of apt installed packages, like it does now.
dijit2 replies#
To be honest, new software should not be being developed on the 2.x line, so if it's not battletested now, it should never be.

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.

compuguy#
Ansible only works with python 2.x (with beta 3.x support).
tobltobs1 reply#
I don't get the logic behind your battletested thought.

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.

Scarblac#
In 3 years, Python 2 will not be maintained anymore. It should really not be used for anything important in 18.04 LTS anymore, because that'll need to be supported for longer.
e12e#
I believe python upstream recommends that "python" is python2 and python3.x is "python3"?[1] (Although, that does not jive with official python packages for windows, which is both annoying and confusing - the pep governs "unix like" systems - eg. including linux subsystem for windows, but excluding python on windows...):

[1] https://www.python.org/dev/peps/pep-0394/

marcoceppi#
I agree, I usually update defaults so that python => python3. However, PEP has some guidance on how this should be handled[1].

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 :)
[1]: https://www.python.org/dev/peps/pep-0394/

rlpb1 reply#
Python 3 is installed by default, and Python 2 is no longer installed by default on Ubuntu Server since 16.04.

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.

dustinkirkland#
Everything @rlpb just said here is spot on ;-) Definitive +1.