send() to a generator in a "for" loop with continue(val)??

Aahz aahz at
Sat Apr 18 15:03:32 CEST 2009

In article <gsc7e1$rj6$02$1 at>,
Peter Otten  <__peter__ at> 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
you really should (assuming you want to continue arguing).
Aahz (aahz at           <*>

"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