Sorting a list with entries of unequal types
Ben Finney
ben+python at benfinney.id.au
Fri Jan 29 02:08:35 EST 2010
Terry Reedy <tjreedy at udel.edu> writes:
> And complex numbers, and probably some other things, cannot be sorted
> even in Python2. Universal sorting is a broken idea, so Python3 leaves
> it to you to say what *you* mean.
Okay. I guess I'd better figure out what that is, for this code base,
before porting it to Python 3 :-)
Thanks for the helpful responses.
--
\ “Most people, I think, don't even know what a rootkit is, so |
`\ why should they care about it?” —Thomas Hesse, Sony BMG, 2006 |
_o__) |
Ben Finney
More information about the Python-list
mailing list