"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:9f4be2240912210639g58da0549jb0c81450947ef...@mail.gmail.com...
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.