[ZODB-Dev] BTree corrupted after conflict resolution

Christian Robottom Reis kiko at async.com.br
Fri Mar 5 21:13:40 EST 2004


On Fri, Mar 05, 2004 at 10:06:53PM +0100, Dieter Maurer wrote:
> Christian Robottom Reis wrote at 2004-3-4 11:18 -0300:
> > ...
> >> Perhaps we should define an __cmp__() method that raises an error on the
> >> stub objects that conflict resolution provides.
> >
> >Well, wouldn't that just be a roundabout way of making it explicit that
> >nothing but simple types can be used as BTree keys (since no custom
> >__cmp__ can be provided), or are you considering the zero-concurrency
> >situation? :-)
> 
> No. There is not problem to use class instances as keys,
> provided they provide a persistent (complete) ordering
> and they are not persistent.

Okay. But then how do they provide complete ordering if not via __cmp__
or __rcmp__, given that they are instances?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331



More information about the ZODB-Dev mailing list