News for hackers. Stuff that matters.
Re:Rust for C++ programmers – part 3: primitive types and op... by masklinn on Wednesday April 23, 2014 @04:54AM (#7632908)
> Instead of raising an exception, though, Python decided that all strings are "greater than" all integers

Yep. That's one of the things they changed/fixed in Python 3, comparisons are not defined across and between any and all types:

    >>> "foo" > 3
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: unorderable types: str() > int()

There are no comments on this comment yet.