Live data from Hacker News

NumPy 1.16 is the last release to support Python 2.7

github.com

51–60 of 115 posts

Re: NumPy 1.16 is the last release to support Python 2.7

#51
post #14

Earlier quoted context omitted.

Sorry, I mean that the volunteer maintainer of the latexmk package in Debian hasn't updated it since 2015. Arch probably has a newer version from the latexmk authors (and I think Arch does not have the same culture of individual package maintainers, in general).

The Debian LaTeX maintainer was essentially harassed out of the project by the Anti-Harassment Team.

Source?

Re: NumPy 1.16 is the last release to support Python 2.7

#53
post #50
post #4

Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. A bit curious that 3.4 has been dropped, as that's the stock Python 3 shipped for CentOS 7.

> Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. Will that awesome async stuff help us migrate several 100s of thousands of lines of 2.7 code?

I guess 10 years was more than enough time, maybe 2.x series will be the Cobol of Python world.

Re: NumPy 1.16 is the last release to support Python 2.7

#54
post #50
post #4

Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. A bit curious that 3.4 has been dropped, as that's the stock Python 3 shipped for CentOS 7.

> Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. Will that awesome async stuff help us migrate several 100s of thousands of lines of 2.7 code?

What percentage of those lines do you estimate will need changes?

Re: NumPy 1.16 is the last release to support Python 2.7

#55
post #30

Earlier quoted context omitted.

EDIT: My comment is grossly misunderstood and I cannot delete my comment. I did not imply python 3 causes bad code, I was trying to tell a story about how "our" python 2 code is handsome and python 3 code is ugly; sorta implying python2 is not necessarily legacy code. I have absolutely no problem with python 3 and prefer it over python 2. I do not want to start a 2 vs 3 flamewar please just ignore this comment. === M…

If your Python 2 code is clean and your Python 3 is ugly, I don't know what the hell you are doing. They are almost the same language. Are you trolling?

The narcissism of small differences: it makes us notice differences (and dislike the differences) between things that are mostly identical to outside observers.

Re: NumPy 1.16 is the last release to support Python 2.7

#56
post #54
post #50

Earlier quoted context omitted.

> Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. Will that awesome async stuff help us migrate several 100s of thousands of lines of 2.7 code?

What percentage of those lines do you estimate will need changes?

100% will need to be tested.

Re: NumPy 1.16 is the last release to support Python 2.7

#57
post #54
post #50

Earlier quoted context omitted.

> Just rip the band-aid off. Some of the async stuff in Python 3 is awesome. Will that awesome async stuff help us migrate several 100s of thousands of lines of 2.7 code?

What percentage of those lines do you estimate will need changes?

Imagine that's part of the challenge. Since python is dynamically typed/duck typed, it's hard to audit all usages of a variable. I.e. If I see a py2 string declared, how can I be 100% sure I don't break downstream components by making it a bytes or py3 unicode string? Some might be using it as the former, others the latter.

You'd need insane test coverage, of all possible code paths, to be 100% confident.

Re: NumPy 1.16 is the last release to support Python 2.7

#58
post #8

Earlier quoted context omitted.

The code I've written recently relies heavily on async and data classes, both of which are recent additions. I can't imagine choosing Python 2 at this point.

Same here. Dataclasses and type annotations are fantastic, not to mention f-strings.

This is all fine for personal/proprietary purposes, but open source can't be that cutting edge. While type annotations are probably fine (3.5), f-strings (3.6) or dataclasses (3.7) won't make it to mainstream OSS anytime soon. But they are great features nonetheless.

Re: NumPy 1.16 is the last release to support Python 2.7

#59
Right now I don't think that python2.7 is very well supported in 1.16. Had to build a docker the other day that uses python2.7 and while building the docker it got numpy 1.16 from the pip mirror. Now import of numpy failed so that I had to revert to the previous version of numpy.
Post reply on HN