fixedpoint cmp conundrum

Tim Peters tim.one at comcast.net
Tue May 4 11:40:36 EDT 2004


[Robert Brewer, defines some __eq__ and __ne__ methods for an old
 class]

> ...am I right in thinking that the presence of __eq__ and __ne__
> doesn't *harm* the class under older versions of Python?

Right.  Older versions will ignore these methods; they'll get invoked only
if you explicitly invoke them (like typing a.__eq__(b)),





More information about the Python-list mailing list