r/Python • • Jan 16 '19

#10YearChallenge

Post image
1.4k Upvotes

96 comments sorted by

View all comments

Show parent comments

32

u/[deleted] Jan 16 '19

And Python 2 is still the default in many Linux distributions.

34

u/flying-sheep Jan 16 '19

“Standard”? You mean “What gets invoked when I type python into the terminal”?

That’ll never change in some distros, because of backwards compatibility. Arch was pretty much the only one crazybrave enough to to that jump, Debian will never do it.

What’s so hard about typing python3 or putting alias python=python3 into your .${SHELL}rc?

0

u/[deleted] Jan 17 '19

[deleted]

1

u/[deleted] Jan 17 '19

Well, take the first rule of linux kernel development: never break user space.

You're sort of trading off the conceptual purity of tidying up for turning scripts using /usr/bin/python into risks (Will it run on python 3? I dunno, but your computer's gonna try it anyway) and that's a bit of a hard sell outside of something bleeding edge like Arch.

It's not backward compatible either but the safer route is what RHEL is trying: get rid of "python" altogether and if you want python2 or python3 that is what you called.

0

u/[deleted] Jan 18 '19

[deleted]

1

u/[deleted] Jan 18 '19

that is another abstract argument.

You may have to just deal with that. "Why should things be backward compatible" is design principle stuff.

The reason to bring up the linux kernel is that being backwards compatible is one of their design principles.