![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Comparison of functions
From: Steven D'Aprano <steve@REMOVETHIScyber.com.au>
Date: Sat Jul 30 2005 - 18:43:22 CEST
On Sat, 30 Jul 2005 15:32:45 +0200, Reinhold Birkenfeld wrote:
>> Um, I didn't ask to compare complex numbers using comparison operators. I
That's a good question, and that's why I'm exploring different comparisons
> Would you prefer a __sort__ method to specify sort order?
Well, there are an infinite number of sort orders. Most of them are pretty
So at this time, I'd rather not be pinned down to some half-baked
> And how would you sort a list of complex numbers?
Answered in another post.
>> Then there is this:
No, 1+0j == 1 > 0 is calculated as 1+0j == 1 and 1 > 0.
>>>>> 1+0j > 0
Of course you can order them. You are confusing order with magnitude. The
-- Steven.Received on Thu Sep 29 17:15:59 2005 |