News for hackers. Stuff that matters.
Re:Announcing Pipenv by JeremyBanks on Monday January 23, 2017 @10:22AM (#13462751)
> Otherwise, whatever $ which python will be the default.

This is a bit strange because the python binary is always supposed to be Python 2. The Python 3 binary is supposed to be named python3. Some distributons don't follow this, but they're the weird non-conformant ones; it's not a behaviour that should really be relied on.

Re:Announcing Pipenv by jacobmischka on Monday January 23, 2017 @11:35AM (#13463391)
> always supposed to be Python 2

This is not correct. It's a symlink to python2 on systems that rely on calls to python to be python2. On modern systems, python is usually a symlink to python3. This is the case on Arch Linux and I believe other recent distro releases.

Re:Announcing Pipenv by JeremyBanks on Monday January 23, 2017 @12:34PM (#13463941)
Arch is the oddball. I'm not aware of anybody else who's made the switch.

Given that they're not mutually compatible except in rare cases, it's a very silly thing to do. You can upgrade GCC with the same name because you know it will handle most of the same input. If you do that with Python you're breaking tons of existing scripts for very close to zero benefit. Why would you do that?

Re:Announcing Pipenv by jacobmischka on Tuesday January 24, 2017 @02:24AM (#13469474)
It's not silly. One of Arch's primary draws is being the first to get updates and integrate new technologies. Other distros will follow soon enough if there really aren't any others.

It's not as if python2 suddenly doesn't exist, it's not terribly life-changing to add a 2 in the places where the scripts are still on the last version.

I'm glad to be on a system where the default Python version isn't one that will be officially unsupported in three years.

Edit: It's worth pointing out that this switch was made 6 years ago and the world is still spinning.

https://www.archlinux.org/news/python-is-now-python-3/

Re:Announcing Pipenv by JeremyBanks on Tuesday January 24, 2017 @02:27PM (#13474629)
They can adopt Python 3 and drop Python 2 without adding this link which encourages a convention of /usr/bin/env python for Python 3 on their platform, creating unnecessary incompatibility with other platforms.

As you said, it's old news now, and not the end of the world. But I'm hoping others don't follow.

Re:Announcing Pipenv by baq on Monday January 23, 2017 @03:33PM (#13465726)
I'm pretty sure Ubuntu 16.04 is Python 3 by default and you have to ask for 2.

edit: nope, been imagining things. too much time in venvs i guess. need to get more sleep :)

Re:Announcing Pipenv by kyrias on Monday January 23, 2017 @01:08PM (#13464301)
Non-conformant? PEP-394 says that scripts should only use python in the shebang if it's compatible with both py2 and py3, and be updated to work with both, or to use python2 otherwise.
Re:Announcing Pipenv by JeremyBanks on Wednesday January 25, 2017 @09:21AM (#13481513)
Re:Announcing Pipenv by jjawssd on Monday January 23, 2017 @11:04AM (#13463094)
Isn't `python` in Ubuntu a Python 3?
Re:Announcing Pipenv by anuragsoni on Monday January 23, 2017 @11:16AM (#13463202)
Not yet. At least on ubuntu 16.10 python still defaults to `python2`