News for hackers. Stuff that matters.
Re:Python Versions Used in Commercial Projects, 2016 Edition by qznc on Friday November 11, 2016 @08:39AM (#12930473)
The default for Debian [0] and Ubuntu [1] is Python3. The `/usr/bin/python` symlink will be Python2 forever, since Python itself advises it. PEP 394[2]:

> for the time being, all distributions should ensure that python refers to the same target as python2.

[0] https://www.debian.org/doc/packaging-manuals/python-policy/c... [1] https://blueprints.launchpad.net/ubuntu/+spec/core-1311-pyth... [2] https://www.python.org/dev/peps/pep-0394/

Re:Python Versions Used in Commercial Projects, 2016 Edition by oneweekwonder on Friday November 11, 2016 @08:59AM (#12930634)
Am I incorrect in recalling that ArchLinux decided against this?

edit: seems to be the case[0]

[0]: https://wiki.archlinux.org/index.php/python#Python_2

Re:Python Versions Used in Commercial Projects, 2016 Edition by qznc on Friday November 11, 2016 @10:36AM (#12931528)
Read the next line in PEP 394 ;)

> however, end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.

Re:Python Versions Used in Commercial Projects, 2016 Edition by majewsky on Friday November 11, 2016 @09:41AM (#12930972)
Yes, which is why it is a staple of PKGBUILDs for Python software to do

  sed -i s/python/python3/ /all/the/things
Re:Python Versions Used in Commercial Projects, 2016 Edition by gsnedders on Friday November 11, 2016 @09:35AM (#12930921)
Before upstream CPython had any defined policy on the python symlink.