[Zope-dev] Re: Acquisition in Python2.5
Nikhil N
nikhil.n.n at gmail.com
Tue Jan 22 11:57:12 EST 2008
On Jan 22, 2008 5:01 AM, Tres Seaver <tseaver at palladion.com> wrote:
> > Hanno Schlichting wrote:
>>
>> Two wrappers compare equal, so the code comparing an AQ wrapper with
>> something different should be the one with the problem. I'd look into
>> Wrapper_compare in _Acquisition.c.
>
> > Under 2.5, that function isn't even called during the test. QED.
>
> It looks as though the only way out is to implement rich comparison
> semantics (Python's 'do_cmp' prefers 'tp_richcompare' to 'tp_compare').
>
Thanks for those hints. I will try to solve it by trying the above ways
(although I am not much good at C api part at present).
Regards,
Nikhil
More information about the Zope-Dev
mailing list