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

Hanno Schlichting hanno at hannosch.eu
Thu Oct 28 08:27:21 EDT 2010


On Wed, Oct 27, 2010 at 8:56 PM, Jim Fulton <jim at zope.com> wrote:
> On Wed, Oct 27, 2010 at 1:59 PM, Hanno Schlichting <hanno at hannosch.eu> wrote:
>
> I suppose that depends on the application.  Was the use of None
> intentional, or the result of sloppy coding?

I'd have to check the code. I expect it to be sloppy coding.

> I'll make a 3.10.1 release without it and a 3.10.2a1 release with it.

Thanks a lot for this!

> I do think these warnings are beneficial, possibly wildly so. :)
> As I said earlier, in 3.11, it will be an error to use an object with
> default comparison as a key, but loading state with such objects will
> only warn.

I agree with them being useful. And once I'm not busy at the
conference, I'll give it more proper testing.

Thanks,
Hanno


More information about the ZODB-Dev mailing list