writable iterators?

Neal Becker ndbecker2 at gmail.com
Wed Jun 22 15:28:23 EDT 2011


AFAICT, the python iterator concept only supports readable iterators, not write.  
Is this true?

for example:

for e in sequence:
  do something that reads e
  e = blah # will do nothing

I believe this is not a limitation on the for loop, but a limitation on the 
python iterator concept.  Is this correct?




More information about the Python-list mailing list