Obsolesence of <>

Aahz Maruch aahz at panix.com
Thu May 31 21:40:29 EDT 2001


In article <mailman.991352942.30691.python-list at python.org>,
Lulu of the Lotus-Eaters  <mertz at gnosis.cx> wrote:
>
>FWIW.  I'm not really sure I like the change Alex points to.  It makes
>something like the below fail:
>
>  l = [(1+1j),(2-2j),Klass(),Klass(),Klass,5,4,3,'c','b','a']
>  l.sort()
>
>In a list like this, many of the comparisons have no particular meaning.
>I have no idea whether an instance of Klass is more than a complex
>number.  And in most cases, I don't even have any idea whether one
>instance is meaningfully greater than another.  But it is nice to have
>everything have some arbitrary inequality relation in order to create
>partial orderings on the subsets of things that really do have an order.
>It makes perfect sense to me to want the numbers and strings to occur in
>order, even while not caring exactly -where- in the sorted list they
>occur as a sublist.

Yup, this used to work.  Then came Unicode....
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Characters exist to suffer, you know.  An author needs a little sadism
in her makeup."  --Brenda Clough



More information about the Python-list mailing list