send() to a generator in a "for" loop with continue(val)??
Aahz
aahz at pythoncraft.com
Sat Apr 18 09:03:32 EDT 2009
In article <gsc7e1$rj6$02$1 at news.t-online.com>,
Peter Otten <__peter__ at web.de> wrote:
>
>If it were up to me I'd rip out send() immediatly. At first I thought I
>would see a compelling use case and be enlightened, but it never happened.
Too late -- it's likely to get an upgrade for 3.1 and 2.7. Basically,
send() is useful for coroutines, and if you haven't yet read
http://dabeaz.com/coroutines/
you really should (assuming you want to continue arguing).
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
More information about the Python-list
mailing list