[ZODB-Dev] BTree corrupted after conflict resolution

Dieter Maurer dieter at handshake.de
Fri Mar 5 16:06:53 EST 2004


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.

We used such classes for a long time: "DateTime" in "FieldIndexes".

-- 
Dieter



More information about the ZODB-Dev mailing list