[issue4337] Iteration over a map object with list()

Raymond Hettinger report at bugs.python.org
Mon Nov 17 17:06:05 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Feature :-)

You will get the expected result if you skip the step where you ran the
for-loop over r before running list().  Either listing or for-looping
will exhaust the iterator.  This is how iterators work.

----------
nosy: +rhettinger
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4337>
_______________________________________


More information about the Python-bugs-list mailing list