[Grok-dev] Re: Iterativly emptying a grok.container shows weird
kevin at bud.ca
Tue Jun 12 13:15:08 EDT 2007
> - Now that Python has in fact grown its own lazy-iteration protocol,
> BTrees should move to adopt it; at the very least, BTrees should
> grow an .iterkeys() method which could begin as a synonym for the
> current .keys() function, so that new code can begin using plain
> Python idiom. Readability would at least be enhanced, even if no
> one could agree upon a timetable for ever having .keys() revert to
> Pythonic behavior.
Python 3 will have dict.keys() return an iterator and not a list:
So all that is required is to wait for Pythonic behaviour to catch up
with Zoponic behaviour.
ME GROK SMASH THE WORD ZOPONIC!
More information about the Grok-dev