[Python-Dev] Python 3 as a Default in Linux Distros (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Jul 24 17:10:27 CEST 2013


Am 24.07.13 11:12, schrieb Bohuslav Kabrda:

- Should we point /usr/bin/python to Python 3 when we make the move?

This should depend on the answer to this question:

Users "should" have been explicit in declaring scripts as /usr/bin/python2 for quite some time now, except that this would break on distros which don't provide a python2 symlink.

Ideally, you "should" have warned users to be explicit with python2 if the script wouldn't work on python3. But I'd wave this requirement, as there is already the upstream PEP.

So (IMO) if it the last three Fedora releases had been providing python2 binaries, it should be allowed to switch python to be python3. The exact number can be debated; it should depend on what releases are still in active use so that a script would run on multiple releases.

Then you can tell users that possible breakage is easy to fix: just install python2, and change the shebang line.

Regards, Martin



More information about the Python-Dev mailing list