Rich Comparisons Gotcha

Robert Kern robert.kern at gmail.com
Mon Dec 8 01:27:44 CET 2008


Terry Reedy wrote:
> Robert Kern wrote:
>> Terry Reedy wrote:
>>> Rasmus Fogh wrote:
> 
>>>> Personally I would like to get these !@#$%&* misfeatures removed,
>>>
>>> What you are calling a misfeature is an absence, not a presence that 
>>> can be removed.
>>
>> That's not quite true.
> 
> In what way, pray tell.  My statement still looks quite true to me.

There is an explicit policy that __eq__() methods can return non-bools for 
various purposes. I consider that policy to a "presence that can be removed". 
There is no check because that policy exists, not the other way around.

Anyways, this is really a semantic digression, and not particularly important. 
Peace?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list