[Python-Dev] porting pycxx and pysvn to python 3.0 hit a problem
"Martin v. Löwis"
martin at v.loewis.de
Tue Oct 7 22:11:19 CEST 2008
>> Given that p.we.x seems to always return the same object (since the
>> hashes, which which appear to be ids, are the same), an __eq__ method
>> (which gets called in preference to __cmp__), possibly inherited, that
>> always return False is the only thing I can think of. (Hence Martin's
>> question, I presume). I have no idea, however, how porting could make
>> that happen.
>>
>
> I see no reply from Martin. What was his question?
Whether __eq__ was implemented for the specific type (and whether
that implementation was consistent with __hash__).
Regards,
Martin
More information about the Python-Dev
mailing list