[ZODB-Dev] weird BTrees KeyError (CVS HEAD)

Jeremy Hylton jeremy at zope.com
Fri Jun 27 19:24:13 EDT 2003


On Fri, 2003-06-27 at 14:13, Christian Reis wrote:
> I have a BTree (held by ListIndex for the IC-interested) that uses
> PersistentLists as keys. I'm running into the following situation:

Unless you are very careful, it is not safe to use a PersistnetList as a
BTree key.  If the PersistentList is ever mutated, it may not have the
same place in the total order of the keys.  Are you sure that these
lists are never mutated and that their contents are totally ordered?

Jeremy





More information about the ZODB-Dev mailing list