[ZODB-Dev] bug in slicing keys of BTrees
Steve Alexander
steve@cat-box.net
Sat, 18 May 2002 20:18:25 +0100
I've found this odd bug in the BTrees that is with Zope 3.
I haven't verified it yet for the Zope2 version (if that is different).
>>> from Persistence.BTrees import OOBTree
>>> b=OOBTree.OOBTree({'a':1})
>>> b.keys()
<OOBTreeItems object at 0x81557c8>
>>> b.keys()[:]
Traceback (most recent call last):
File "<stdin>", line 1, in ?
IndexError: 2147483647
>>> [i for i in b.keys()]
['a']
>>>
--
Steve Alexander