Obsolesence of <>

Jose' Sebrosa sebrosa at artenumerica.com
Fri Jun 1 19:21:04 EDT 2001


Darren New wrote:
> 
> Jose' Sebrosa wrote:
>
> > Thats the only way I can figure to invent a comparison between two complexes,
> > and it seems preety absurd to me...
> 
> If you're looking for a consistant but nonsense way of comparing tuples,
> you could compare them as tuples of floats. A < B if A.real < B.real ||
> (A.real == B.real && A.imag < B.imag).

Gosh! So simple! Of course you are right!

> Not very good mathematics, but then mathematicians don't try to do that.
> :-) It certainly doesn't make any *less* sense than "foo" < 27.

Not very good mathematics but that's not the point, it is surely very good
Python!

Sebrosa



More information about the Python-list mailing list