Raymond Hettinger <rhettinger@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@bugs.python.org>
<http://bugs.python.org/issue4337>
_______________________________________