News for hackers. Stuff that matters.
Re:Python FAQ: Equality by rflynn on Saturday April 14, 2012 @04:47PM (#3841947)
Good stuff. I was playing around with ordinality of language built-ins recently and found unintuitive results for Python (https://github.com/rflynn/wat/blob/master/src/py.ord.png). As your article mentions there is a fine line between language and implementation detail.

    >>> u"" > () > "" == u""
    True
Re:Python FAQ: Equality by j_baker on Sunday April 15, 2012 @01:24AM (#3842889)
http://docs.python.org/library/stdtypes.html#comparisons

CPython implementation detail: Objects of different types except numbers are ordered by their type names; objects of the same types that don’t support proper comparison are ordered by their address.

Re:Python FAQ: Equality by moreati on Sunday April 15, 2012 @05:09AM (#3843206)
Worth mentioning that this was fixed/removed in Python 3.x

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