Hacker News new | ask | show | jobs
by x14 3139 days ago
Don't forget how nice super().__init__() is.
1 comments

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