[ZODB-Dev] RE: B-Tree API - again!
Jeremy Hylton
jeremy@zope.com (Jeremy Hylton)
Fri, 6 Dec 2002 11:55:59 -0500
>>>>> "ML" == Magnus Lycka <magnus@thinkware.se> writes:
>>>> class x(BTrees.OOBTree.OOBTree):
ML> ... pass ...
>>>> a = x() a[1] = 1 del a[1]
ML> Traceback (most recent call last):
ML> File "<interactive input>", line 1, in ?
ML> AttributeError: __delitem__
ML> Is there are a good explanation for this?
ML> Why is it that OOBTree doesn't have a __delitem__ but "del
ML> tree[x]" still works!
I figure it must have something to do with ExtensionClass.
Jeremy