[ZODB-Dev] lazy BTreeItems

Victor Safronovich vsafronovich at naumen.ru
Fri Dec 9 02:53:25 EST 2005


Hello Andreas Jung,

Friday, December 9, 2005, 12:17:36 PM, you wrote:

AJ> That's different from my instance (Zope HEAD):
  You are right :), i use ZODB 3.1.5. Ok, i try on ZODB 3.4.0 this works.

  But this behaviour differs from dict objects, is this correct :)?
>>> t = IIBTree(map(None,range(5),range(5)))
>>> for i in t.keys():
        if i in [1,3]:
                del t[i]
        print i

        
0
2
3
>>> t = dict(map(None,range(5),range(5)))
>>> for i in t.keys():
        if i in [1,3]:
                del t[i]
        print i

        
0
1
2
3
4
  If this is correct, bug in my code :)).

--
Best regards,
 Victor Safronovich
 NauMen.NauDoc.SoftwareDeveloper  http://www.naumen.ru



More information about the ZODB-Dev mailing list