22 Jan
2008
22 Jan
'08
4:57 p.m.
On Jan 22, 2008 5:01 AM, Tres Seaver <tseaver@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