How does compare work?

Gerrit Holl gerrit at
Tue Jan 27 14:16:51 CET 2004

Inyeol Lee wrote:
> (This unusual definition of comparison was used to simplify the
> definition of operations like sorting and the in and not in operators.
> In the future, the comparison rules for objects of
> different types are likely to change.) 
> """

When comparing mixed types becomes illegal, does that mean sorting a
sequence of mixed types becomes illegal as well? Or will sort be a
special case?


136. If any one leave his house, run away, and then his wife go to
another house, if then he return, and wishes to take his wife back:
because he fled from his home and ran away, the wife of this runaway shall
not return to her husband.
          -- 1780 BC, Hammurabi, Code of Law
PrePEP: Builtin path type
Asperger's Syndrome - a personal approach:

More information about the Python-list mailing list