[ZODB-Dev] Issue trying to remove elements in OOTreeSet

Marius Gedminas marius at gedmin.as
Fri Sep 24 11:25:06 EDT 2010


On Fri, Sep 24, 2010 at 04:14:34PM +0200, César Muñoz wrote:
> I see...
> That explains the issue, after implementing the __cmp__ method everything is
> now working perfectly.

Just note that if you have any valuable preexisting data, it may have
been stored incorrectly, using the old default __cmp__ implementation.
Dump it using items() and add it one-by-one to an empty OOTreeSet to
recover.

Marius Gedminas
-- 
Anybody who doesn't cut his speed at the sight of a police car is
probably parked.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20100924/ad7ff1dc/attachment.bin 


More information about the ZODB-Dev mailing list