[ZODB-Dev] updating BTrees

Jeremy Hylton jeremy at zope.com
Fri Apr 25 19:02:38 EDT 2003


On Fri, 2003-04-25 at 13:53, Nicholas Henke wrote:
> Are there any plans to update BTrees for the newer MappingType methods
> for Python2.2 -- aka iterators, 'for i in IOBTree' will access all of
> the keys ?

The BTrees in ZODB4 have iterator support -- iterkeys, itervalues,
iteritems.  The default iterator for a BTree is its keys, just like a
dict.  It also supports __contains__.

Jeremy





More information about the ZODB-Dev mailing list