[ZODB-Dev] Default comparison considered harmful in BTrees.

Hanno Schlichting hanno at hannosch.eu
Wed Oct 27 13:59:54 EDT 2010


On Wed, Oct 27, 2010 at 6:45 PM, Jim Fulton <jim at zope.com> wrote:
> If not, I wonder if the existing indexes have some bad values in
> them that are triggering this somehow.  The relevant check is being done
> when loading state.  I bet you have some bad keys (e.g. None) in your
> data structures. Could you check that?  If this is what's happening, then
> I think the warning is useful.  For 3.11 though (aka trunk) I'll
> rearrange things
> so the check isn't performed when loading state.

Aha. I haven't looked into all the cases, but I did find a None value
in the two examples I checked.

So in an OOTree with string keys, None is considered invalid and would
need to be an empty string?

Thanks!
Hanno


More information about the ZODB-Dev mailing list