Hello zodb-dev! Is this a correct behaviour? >>> from BTrees.IIBTree import IIBTree >>> t = IIBTree(map(None,range(5),range(5))) >>> list(t.keys()) [0, 1, 2, 3, 4] >>> k = t.keys() >>> list(k) [0, 1, 2, 3, 4] >>> del t[0] >>> list(k) []
BUT >>> i = iter(t.keys()) >>> del t[1] >>> list(i) [2, 3, 4] Or should I always cast to unlazy list, when i want to remove some keys from btree? And how did iterator return 2,3,4 keys? -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - [email protected] http://mail.zope.org/mailman/listinfo/zodb-dev
