How to sort a list? NOT a newbie question.

Tim Peters tim.one at home.com
Fri Sep 21 14:45:14 EDT 2001


[William Park]
> Then, how does Python compare complex now?

[Ignacio Vazquez-Abrams]
> It doesn't; it raises an exception.

For <, <=, >, >= and cmp.  == and != are non-exceptional and do "the
obvious" thing.





More information about the Python-list mailing list