[ZODB-Dev] Is this a bug?

Chandra Tambrin ctambrin at yahoo.com
Sun Mar 21 00:40:43 EST 2004


Hi,

I've just tried out ZoDB. I was trying to do the
following:

from BTrees.OOBTree import OOBTree
t = OOBTree()

for i in range(10):
	t[i] = str(i)

for each in t.keys():
	del t[each]

len(t)
--> 5

should be 0 right? what happened here? I know there is
a .clear() function which work fine, but isn't the
above should work fine too, what am I missing here?

Regards,
Chandra

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html



More information about the ZODB-Dev mailing list