Rich Comparisons Gotcha

Rhodri James rhodri at wildebst.demon.co.uk
Tue Dec 9 20:25:01 EST 2008


On Mon, 08 Dec 2008 14:24:59 -0000, Rasmus Fogh <rhf22 at mole.bio.cam.ac.uk>  
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.

-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list