M
moerchendiser2k3
Hi all,
just another question. Can anyone explain me whats the real difference
between tp_richcompare and tp_compare? I read some stuff, but
sometimes I believe the author doesnt know either whats the real
difference or they forget it to explain. The Function definition looks
very similiar, except the one accepts POD types as return value, the
other wants the same for PyObjects.
Do I need to implement both? Looks very redundant, isnt it? Or is it
just an extension and tp_richcompare is the better choice here? Can
anyone please make the light on here?
Really thanks in advance for your help!!
Bye, moerchendiser2k3
just another question. Can anyone explain me whats the real difference
between tp_richcompare and tp_compare? I read some stuff, but
sometimes I believe the author doesnt know either whats the real
difference or they forget it to explain. The Function definition looks
very similiar, except the one accepts POD types as return value, the
other wants the same for PyObjects.
Do I need to implement both? Looks very redundant, isnt it? Or is it
just an extension and tp_richcompare is the better choice here? Can
anyone please make the light on here?
Really thanks in advance for your help!!
Bye, moerchendiser2k3