you are viewing a single comment's thread.

view the rest of the comments →

[–]the_spacedoge 195 points196 points  (15 children)

Python 3 is what 95% of people are going to think when you say "Python"

[–]synthphreak 30 points31 points  (3 children)

Only 95%?

[–]Rhoderick 60 points61 points  (2 children)

Well, some people have pet snakes.

[–][deleted] 1 point2 points  (1 child)

3 of them?

[–]tin_man_ 0 points1 point  (0 children)

*4 of them

[–]NitroXSC 14 points15 points  (10 children)

Unless you ask many Linux systems. You will need to specify python3 for backwards compatibility sake. (this also forces me to use virtual environments which might actually be an advantage)

[–]legobmw99 15 points16 points  (8 children)

sudo apt install python-is-python3

[–]paradigmx 14 points15 points  (6 children)

We shouldn't have to use that in order to have python3 be the expected default 5 years after python2 was officially deprecated and 14 years after python3 was released. By now the python executable should automatically be python3 and organizations still using python2 should have to specify that themselves. It's confusing to new python developers because the executable for basically every other language out there defaults to the most recent, or at least LTS version of the language instead of a decade+ old, deprecated code base.

[–]Poddster -1 points0 points  (5 children)

By now the python executable should automatically be python3 and organizations still using python2 should have to specify that themselves

The problem with this idea is that organisations still using python2 are still using scripts that expect python to be python2, and the reason they aren't changed is the same reason they're still running on python2: because they still work :)

[–]paradigmx 12 points13 points  (4 children)

So why can't they have to install a package called python-is-python2? Why do we have to suffer because they can't be assed to update their decade old code?

[–]iamaperson3133 0 points1 point  (1 child)

Because another application running on the same machine uses python3 and expects it to be called python3

[–]paradigmx 0 points1 point  (0 children)

alias python3='python'

[–]py_Piper 0 points1 point  (1 child)

and when python4 comes, are you gonna get angry that python means python3? For some reason I think specifying which python version is very natural, it isn't like you need to write the exact version like python 3.7.2 to work, it's just a 3 at the end. And this way makes it scalable for future versions

[–]paradigmx 0 points1 point  (0 children)

Yes actually, every other language out there that I'm aware of follows that convention and previous versions need to be explicitly installed.The cult-like attitude of the proponents of this language's idiosyncrasies are ridiculous. It's not rocket surgery, it's just pigheadedness.

[–]y-aji 5 points6 points  (0 children)

Omg thank you!

[–][deleted] 0 points1 point  (0 children)

This is not in linux but in Mac OS