Equal to Anything
Duncan Booth
duncan.booth at invalid.invalid
Wed Oct 4 05:32:11 EDT 2006
"Simon Brunning" <simon at brunningonline.net> wrote:
> I'm fairly sure that I know what is going on here - the left hand side
> object is getting first stab at the equality test, and understandably,
> it's saying "Nah". But is there anything that I can do about it?
>
Not in general, no. If you could, and someone else created a
NotEqualAnything class with the identical definition to EqualAnything
except it returns False, then which would win?
Sorry, but the left hand value wins unless it volunteers otherwise.
More information about the Python-list
mailing list