[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex/tests - mhindex.py:1.18
Tim Peters
tim@zope.com
Tue, 3 Dec 2002 16:59:58 -0500
[Guido van Rossum]
> [Backport from Zope3; I'm not actually sure if the list returned by
> **Btree.keys() is lazy, but I assume it is.]
That's right. **BTree and **TreeSet keys(), values() and items() are all
iterator objects (in the casual sense of the word), not actual lists. But
**Bucket and **Set keys(), values() and items() are actual lists. In Zope3,
all these guys also have iterkeys(), itervalues() and iteritems() methods,
which return iterators (in the technical Python sense).