Obsolesence of <>

Alex Martelli aleaxit at yahoo.com
Fri Jun 1 04:11:10 EDT 2001


<s713221 at student.gu.edu.au> wrote in message
news:3B17787F.266644CB at student.gu.edu.au...
>
> > "Alex Martelli" <aleaxit at yahoo.com> wrote:
> > | Sorry, you're behind the times:
    ...
> > | TypeError: cannot compare complex numbers using <, <=, >, >=
>
> I haven't checked the PEP's (I'm down to 4 h on my uni network account,
> so I'm being conservative), but I'd hasard a guess this is because
> there's several ways to compare complex numbers. 5 + 8j is obviously

Quite likely, and it's very Pythonic for the language to REFUSE
to guess in an ambiguous situation.

But my point was that, EXACTLY because, as Lulu explained, <>
is reminiscent of < and/or >, it's hard to maintain that <> should
continue to apply where neither < nor > now do anymore:-).


Alex






More information about the Python-list mailing list