<br><div class="gmail_quote">On Wed, Jun 22, 2011 at 12:28 PM, Neal Becker <span dir="ltr"><<a href="mailto:ndbecker2@gmail.com">ndbecker2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
AFAICT, the python iterator concept only supports readable iterators, not write.<br>
Is this true?<br>
<br>
for example:<br>
<br>
for e in sequence:<br>
  do something that reads e<br>
  e = blah # will do nothing<br>
<br>
I believe this is not a limitation on the for loop, but a limitation on the<br>
python iterator concept.  Is this correct?<font color="#888888"><br></font></blockquote><div><br>The Generators, Iterators and Comprehensions 2011
                document at the URL below covers a way of doing this.<br><br><a href="http://stromberg.dnsalias.org/%7Edstromberg/Intro-to-Python/">http://stromberg.dnsalias.org/~dstromberg/Intro-to-Python/</a><br><br></div></div><br>