[Python-3000] Iterators for dict keys, values, and items == annoying :)

Robert Brewer fumanchu at amor.org
Thu Mar 23 22:27:58 CET 2006


Guido van Rossum:
> > I've read and re-read Jim's message, and I'm not
> > sure I understand it. It seems he's working in
> > an interactive session but I'm not sure I
> > understand the problem he has with adding list()
> > around an expression

Jim Fulton wrote:
> It's a hassle.
> ...
> I'd be interested to hear if other people who have experience working
> with ZODB BTrees have been as annoyed as I've been.

It is a hassle. I recently changed my ORM's API from returning iterators
to lists based on similar user feedback (and I could have sworn I
already made this comment on this issue, but I can't find it now). That
experience hints to me that any interface that prefers iterators over
lists is going to be resisted; builtins doubly so.


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org


More information about the Python-3000 mailing list