send() to a generator in a "for" loop with continue(val)??
michele.simionato at gmail.com
Sat Apr 18 15:47:56 CEST 2009
On Apr 18, 3:03 pm, a... at pythoncraft.com (Aahz) wrote:
> In article <gsc7e1$rj6$0... at news.t-online.com>,
> Peter Otten <__pete... 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 readhttp://dabeaz.com/coroutines/
> you really should (assuming you want to continue arguing).
I suspect Peter knows everything about coroutines and still he is not
.send. FWIW, I am sympathic with him.
More information about the Python-list