Python 2 will be replaced with Python 3 in the next RHEL major release
21–30 of 341 posts
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#22Earlier quoted context omitted.
The double standard when it comes to Python is mindblowing. No other language could have gotten away with such ridiculous fragmentation and perf regression for such a long period of time.
Not to mention the loss of tuple unpacking in function signatures. Even if i felt morally wrong about it, for the last few years I've been writing python2 with a few `from __future__`s at the top since it was fastest and most featureful and had all the libraries.
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#23This is good: - Python 2 support officially ends somewhere in 2020 - most popular packages are now compatible with Python 3 - Python 3.7 performs about as well as 2.7 with future release expected to be better Although it still took way too long, if you consider Python 3.0 was released about 10 years ago.
The double standard when it comes to Python is mindblowing. No other language could have gotten away with such ridiculous fragmentation and perf regression for such a long period of time.
I recommend this presentation by Victor Stinner at FOSDEM 2018 which talks about it: https://fosdem.org/2018/schedule/event/python3/
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#24Earlier quoted context omitted.
The double standard when it comes to Python is mindblowing. No other language could have gotten away with such ridiculous fragmentation and perf regression for such a long period of time.
Many languages seem to suffer from legacy support. C++ and PHP for example. The double standard might be the only way to avoid this!?
The lesson from both Perl and Python is clear: you cannot remove language features - if you do you're creating a new language which has to start from zero in adoption.
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#25Anyone know if /usr/bin/python will point to python3?
The new scripts should just use the right #! string
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#26Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#27This is good: - Python 2 support officially ends somewhere in 2020 - most popular packages are now compatible with Python 3 - Python 3.7 performs about as well as 2.7 with future release expected to be better Although it still took way too long, if you consider Python 3.0 was released about 10 years ago.
The double standard when it comes to Python is mindblowing. No other language could have gotten away with such ridiculous fragmentation and perf regression for such a long period of time.
Previous versions of python were back-compatible. Java versions stress back-compatibility. I don't know if HN can find any counter-examples, of a language that thrived through an incompatible, code-breaking upgrade.
Python has done everything possible to avoid this fate, by maintaining 2.7. And I'm not even convinced python has gotten away with yet (e.g. kalite, offline khan academy, needs 2.7). RHEL may end up reversing this. Give it another ten years!
Amd the Enterprize is the most back-compatible thing you've ever seen. This change is going to break lots of code, and they will reverse or lose customers.
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#28They're two different languages. I don't see why python3 "replaces" python2 anymore than say ruby does. IMO they should have separate namespaces and invocation.
That isn't really to say that somebody else won't make packages.
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#29This is good: - Python 2 support officially ends somewhere in 2020 - most popular packages are now compatible with Python 3 - Python 3.7 performs about as well as 2.7 with future release expected to be better Although it still took way too long, if you consider Python 3.0 was released about 10 years ago.
"Most popular" packages, which ones? Most moved a long time ago to Python 3
Re: Python 2 will be replaced with Python 3 in the next RHEL major release
#30If this is an issue for you, I would highly recommend that you have a look at virtual environments via tools like virtualenv and conda. That way you'll be able to run all the versions you like.
That's not me saying "don't use virtual environments", just be aware you'll probably need to switch back for some system tools.