Live data from Hacker News

Python 2 will be replaced with Python 3 in the next RHEL major release

access.redhat.com

31–40 of 341 posts

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#31
post #3

This 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.

Got a source for the performance regressions? Some things are faster in Python 3 than 2 "Most popular" packages, which ones? Most moved a long time ago to Python 3

> "Most popular" packages, which ones? Most moved a long time ago to Python 3

http://py3readiness.org/

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#32
post #26

They'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.

You can write code that runs with both python3 and python2. Therefore I wouldn't call them different languages.

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#33
post #25
post #12

Anyone know if /usr/bin/python will point to python3?

That would be really bad. The new scripts should just use the right #! string

It could be configurable (like with /usr/bin/c++) or at least be the case when python2 isn't installed.

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#34
post #7

Earlier quoted context omitted.

Perl6

Well, they didn't really get away with it. Perl isn't as widely used as it used to be. Besides, in spite of the name Perl6 isn't compatible with Perl5 but rather a completely new language.

Perl 6 is a completely new language, but that doesn't mean it's incompatible. Inline::Perl5 provides a rather extensive compatibility layer with Perl 5: https://github.com/niner/Inline-Perl5

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#35
post #28
post #26

They'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.

They do -- it's trivial to have python2 installed on the same system as python3. The deal with RHEL is that they will no longer include python2 packages at all. That isn't really to say that somebody else won't make packages.

Thank you, that's much more clear. So RHEL is deprecating their python2 package i.e. declaring their intent to eventually remove it.

For some reason "replaces X with Y" suggests to me that they swapped one for the other (e.g. /usr/bin/python) which seems error-prone.

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#36
post #31

Earlier quoted context omitted.

Got a source for the performance regressions? Some things are faster in Python 3 than 2 "Most popular" packages, which ones? Most moved a long time ago to Python 3

> "Most popular" packages, which ones? Most moved a long time ago to Python 3 http://py3readiness.org/

Thanks for proving my point

There's Fabric3, MySQL libs that work with Python3 (and Django), futures are a backport of a feature from Python3, uWSGI and BeautifulSoup might be worrying but the site shows mostly green

At this point if the library hasn't been ported to Py3, someone else would have done it for you or abandoned it.

Edit: Thanks for the updates!

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#37
post #22
post #14

Earlier quoted context omitted.

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.

I'm not sure that tuple unpacking in function signatures is any great loss. It's a feature I hardly ever saw used and if you do need to unpack an argument then you can do so in the first line of the function's code.

I saw it used a lot and it caused hours of rewrites to get libraries python3 ready. It's one of those things where I wonder why they didn't just depreciate it for another few iterations, allowing scripts to be changed over time.

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#39
post #3

This 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 guess you haven’t looked at Swift. All 4 major versions are very incompatible.

Re: Python 2 will be replaced with Python 3 in the next RHEL major release

#40
post #31

Earlier quoted context omitted.

> "Most popular" packages, which ones? Most moved a long time ago to Python 3 http://py3readiness.org/

Thanks for proving my point There's Fabric3, MySQL libs that work with Python3 (and Django), futures are a backport of a feature from Python3, uWSGI and BeautifulSoup might be worrying but the site shows mostly green At this point if the library hasn't been ported to Py3, someone else would have done it for you or abandoned it. Edit: Thanks for the updates!

I think ansible is a big one for RHEL though.
Post reply on HN