Rich Comparisons Gotcha

Rasmus Fogh rhf22 at
Wed Dec 10 15:50:07 CET 2008

Rhodri James wrote:
> On Mon, 08 Dec 2008 14:24:59 -0000, Rasmus Fogh  wrote:

>> On the minus side there would be the difference between
>> '__equal__' and '__eq__' to confuse people.

> This is a very big minus.  It would be far better to spell __equal__ in
> such a way as to make it clear why it wasn't the same as __eq__,
> otherwise
> you end up with the confusion that the Perl "==" and "eq" operators
> regularly cause.

You are probably right, unfortunately. That proposal is unlikely to fly.
Do you think my latest proposal, raising BoolNotDefinedError, has better

Dr. Rasmus H. Fogh                  Email: r.h.fogh at
Dept. of Biochemistry, University of Cambridge,
80 Tennis Court Road, Cambridge CB2 1GA, UK.     FAX (01223)766002

More information about the Python-list mailing list