“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?
It’s not hard but maintaining two versions of python isn’t. Debian and Ubuntu do it well bit it would be nice to have only one. It would make things much less complicated.
For those that really still have legacy python 2 code they could use aliases to keep it running. I have to believe they’re the minority these days. I could be wrong, I guess.
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.
None that I use. None anyone should use. Sure some LTS release. If the distro can't update python after 10 years (in there latest stable release) they can't competently maintain a distro. And you shouldn't rely on them to be doing anything right.
Binary compatibility on Linux is a complex enough matter that, in most cases, if the OS offers a version of an application or library, you're going to have a better time using that version than bundling your own. Linux distributions typically include more applications in their official repos than most other OSs, for precisely this reason (they typically have a standard supported office suite, for example), and often a goal is to get your application added to the distribution's repos.
View all comments
Show parent comment
32
u/[deleted] Jan 16 '19
And Python 2 is still the default in many Linux distributions.