[Python-3000] Iterators for dict keys, values, and items == annoying :)
Guido van Rossum
guido at python.org
Thu Mar 23 22:43:58 CET 2006
On 3/23/06, Robert Brewer <fumanchu at amor.org> wrote:
> 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.
Interesting. Was your feedback also based on use in interactive
sessions only (like Jim's)?
Would the same objection exist against APIs that return "views" as I
described in a previous message (a la the Java collections package)?
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list