Live data from Hacker News

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

access.redhat.com

91–100 of 341 posts

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

#91
post #76

Earlier quoted context omitted.

Since Python 3.5 (3 years ago) type hints are part of the core syntax. Don't need to put them in comments. https://www.python.org/dev/peps/pep-0484/#type-definition-sy...

> a_list = [] # type: List[T] How do you do that with out a comment?

from typing import List

a_list: List[T] = []

Visit https://docs.python.org/3/library/typing.html for more information.

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

#92
post #16

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

Wasn't there a big brouhaha over the change from VB6 to VB.Net? The big difference there is that if it's ordained from your corporate overlords, you have little choice, whereas you feel like you've got a bigger right to complain when it's "just" coming from the BDFL.

VB.NET is a totally new language almost unrelated to VB6. That’s like talking about C vs C++, not py2 vs py3.

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

#93
post #64

Earlier quoted context omitted.

Quite the opposite. Python had deep problems that could simply not be fixed without BC breaks. The decision was made, and in hindsight it was the correct decision by Guido and other core devs. Look at PHP, and look what a total cluster of madness the language has become.

I think Python 3 was not brave enough, to be honest, to future proof Python: * an optional type system without hacks was not introduced (types in comments, really?) * the GIL was not removed or at least a solid parallelism story was not included, one that would allow Python to use all cores on a system while sharing, if needed, memory * no true performance improving changes were made; by this I mean stuff that improv…

Perl6 was brave enough. It became a totally different language and lost much of its user base who moved on to Python, Ruby and to a lesser extent Node.

From what I saw, Python3 doesn't have type hints but it at least warns when you try to do stuff which involves magic, such as trying to increment a float.

Perl6 doesn't warn in those cases. If you use type inferrence it just happily goes ahead and uses the equivalent of perl5 BigNum which makes the code run 50x slower, instead of upgrading to BigNum when int overflows like Ruby does. If you use ugly C-style loops instead of nicer native for loops, your loop will run 2x faster. Too much magic or the wrong sort of magic can be really annoying sometimes.

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

#94
post #76
post #64

Earlier quoted context omitted.

I think Python 3 was not brave enough, to be honest, to future proof Python: * an optional type system without hacks was not introduced (types in comments, really?) * the GIL was not removed or at least a solid parallelism story was not included, one that would allow Python to use all cores on a system while sharing, if needed, memory * no true performance improving changes were made; by this I mean stuff that improv…

Since Python 3.5 (3 years ago) type hints are part of the core syntax. Don't need to put them in comments. https://www.python.org/dev/peps/pep-0484/#type-definition-sy...

They badly need to update the docs, then. Almost everything I see on that page does this:

vec = [] # type: Vector[float]

vec = [] # type: Iterable[Tuple[float, float]]

a = MyClass() # type: MyClass[int]

x = Foo() # type: Foo[int]

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

#95
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.

> most popular packages are now compatible with Python 3

I often see this but I think it's a perception from the Internet/web world.

I work for CGI, all (I'm not kidding) our softwares (we have many) are 2.7. You will never see them used "on the web/Internet/forum/network" place but the day-to-day job of millions of peoples in the industry is 2.7.

And we are a tiny focused industry. So I'm sure there is many other industries like us which are 2.7 that you will never heard of.

That's why "most popular" mean nothing once you take how Python is use as a whole. We don't use any of this web/Internet/network "popular" packages.

I'm not saying Python shouldn't move on. I'm just trying to argue against this "most popular packages" while millions of us, even if you don't know it, us none of those.

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

#96
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.

i can feel about the same time for Java 8 to Java 11, where 9 and 10 are transitional and with a really low level of engagement, especially for thrid-party libraries, kicking the jar-hell again

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

#97
post #16

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

Wasn't there a big brouhaha over the change from VB6 to VB.Net? The big difference there is that if it's ordained from your corporate overlords, you have little choice, whereas you feel like you've got a bigger right to complain when it's "just" coming from the BDFL.

As VB6 is compiled, you don't need your users to have a particular interpreter version installed.

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

#98
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.

> Although it still took way too long, if you consider Python 3.0 was released about 10 years ago

Somehow, it was the plan[0]. I feel like I wrote about that extensively already way too many times[1].

[0]: (2016) https://news.ycombinator.com/item?id=11502844

[1]: (2012) https://news.ycombinator.com/item?id=4569440

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

#99

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

I think it's the opposite. When other languages make incompatible changes, they have serious problems (e.g perl6). 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 e…

> I don't know if HN can find any counter-examples, of a language that thrived through an incompatible, code-breaking upgrade.

Swift breaks every major version at least but not as often and on a large scale anymore with point releases as with 1.x and 2.x. Has been like that from the beginning and everybody that writes it accepted it.

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

#100
post #16

Earlier quoted context omitted.

Wasn't there a big brouhaha over the change from VB6 to VB.Net? The big difference there is that if it's ordained from your corporate overlords, you have little choice, whereas you feel like you've got a bigger right to complain when it's "just" coming from the BDFL.

As VB6 is compiled, you don't need your users to have a particular interpreter version installed.

I do remember the good old days of having to make sure you had MSVBVM50.DLL or MSVBVM60.DLL in the right place...
Post reply on HN