25 May
2004
25 May
'04
4:35 p.m.
[Martijn Faassen] ...
I'm not sure whether the patch ever could've worked. Firstly, the rich comparison operations were never called; I think perhaps due to some limitation in ExtenionClass.
ExtensionClass doesn't play well with many "newer" Python class features. Rich comparisons are one of them.
__cmp__ is called, but instead I just made the method explicit. Possibly this is better in Zope 2.7; I'm still testing with 2.6.4.
This may improve with ZODB 3.3 / Zope 2.8, where Persistent is a vanilla new-style Python class (instead of an ExtensionClass).