osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tutor] beginning to code


INADA Naoki wrote:
> Rick Johnson wrote
[...]
> > Of course, allowing all objects to use the `==`, `!=`
> > sugars makes perfect sense, but `<`, `>`, `<=`, `>=` are
> > meaningless outside of numeric-ish types.
> 
> Now you know why Python 3 was born! It's one of many
> pitfalls in Python 2 fixed in Python 3. Welcome to Python 3
> world.

While obviously Python3's removal of this absurdity was an
evolution in the right direction, it's also hardly worth my
trouble to upgrade when i can just happily ignore the
absurdity.