[Python-3000] Iterators for dict keys, values, and items == annoying :)
Barry Warsaw
barry at python.org
Fri Mar 24 14:09:20 CET 2006
On Thu, 2006-03-23 at 17:06 -0800, Guido van Rossum wrote:
> The pattern with the 'empty' flag is only needed when due to API
> constraints you have only got an iterator.
Which can happen quite often actually. Perhaps making the original
object available as an attribute of the iterator can help in those
situations though.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-3000/attachments/20060324/b5102145/attachment.pgp
More information about the Python-3000
mailing list