News for hackers. Stuff that matters.
Re:Numpy: Plan for dropping Python 2.7 support by x14 on Wednesday November 15, 2017 @09:22PM (#15709837)
Don't forget how nice super().__init__() is.
Re:Numpy: Plan for dropping Python 2.7 support by speedplane on Thursday November 16, 2017 @04:34AM (#15711346)
The double underscore methods are some of the ugliest parts of Python. If they were going to break compatibility, I'd get rid of them too.
Re:Numpy: Plan for dropping Python 2.7 support by m_mueller on Thursday November 16, 2017 @08:02AM (#15712300)
I think you're right, only this wouldn't require breaking compatibility. It doesn't even require a python upgrade, you could just make a base class that remaps nicer named functions to the standard ones, like baseclass.is_lower_than = baseclass.__lt__
Re:Numpy: Plan for dropping Python 2.7 support by speedplane on Sunday November 19, 2017 @03:05AM (#15732841)
You're probably right. Sadly, the vast majority of the python upgrades probably did not require breaking compatibility. Or if they did, they weren't worth it. I understand that iterators are arguably better than lists and print should arguably be a real function, but those advantages are far too small to justify breaking compatibility.