For...in statement and generators

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Dec 21 12:38:45 EST 2009


En Mon, 21 Dec 2009 11:39:46 -0300, Lucas Prado Melo  
<lukepadawan at gmail.com> escribió:

> Is there a way to send() information back to a generator while using the
> for...in statement?

No. You have to write the iteration as a while loop.

-- 
Gabriel Genellina




More information about the Python-list mailing list