"Gabriel Genellina" wrote:
> En Mon, 21 Dec 2009 11:39:46 -0300, Lucas Prado Melo
> 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.
>
You *can* use send() to a generator w
En Mon, 21 Dec 2009 11:39:46 -0300, Lucas Prado Melo
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
--
http://mail.python.org/mailman/listinfo/python-list
"Lucas Prado Melo" wrote in message
news:[email protected]...
Is there a way to send() information back to a generator while using the
for...in statement?
Thanks in advance.
Yes, see "send(), (generator method)" or "yield expressions" in the help.