[Zope] Operator overriding not working with Zope class.
Etienne Labuschagne
elabuschagne at gims.com
Wed Oct 27 01:12:44 EDT 2004
Hi,
I'd be surprised if that was the case as I have never explicitly
declared the "pure" Python class as a new-style class (ie. inherited
from object).
Etienne
Tino Wildenhain wrote:
>Hi,
>
>Am Di, den 26.10.2004 schrieb Etienne Labuschagne um 10:39:
>
>
>>Sean Hastings wrote:
>>
>>I don't think it is that as it is resolved correctly when using the
>>__gt__ method explicitly. p2.__gt__(p1) works fine, it is p2 > p1 that
>>doesn't work. Doing a inspect.getmro in the object's class also gives
>>me (ZPerson, Person, ....) so it seems as if Person is second in the
>>resolution order. Since there is no __gt__ method defined in ZPerson,
>>it should then resolve to Person's __gt__.
>>
>>
>
>Without much research I can imagine this is because of the Zope
>classes you use are not new style classes and therefore dont use
>all the new interface. I could as well be wrong but maybe
>if you try zope 2.8 or 3.x it could be different.
>
>Regards
>Tino
>
>_______________________________________________
>Zope maillist - Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
More information about the Zope
mailing list