[Python-ideas] x=(yield from) confusion [was:Yet another alternative name for yield-from]

Guido van Rossum guido at python.org
Fri Apr 3 05:37:05 CEST 2009


On Thu, Apr 2, 2009 at 6:43 PM, Jim Jewett <jimjjewett at gmail.com> wrote:
> yield from *as an expression* only really makes sense if the generator
> is sending useful information *both* ways.  I can understand that sort
> of generator only while reading the PEP; the code smell is strong
> enough that I forget it by the next day.

Read Dave Beazley's coroutines tutorial (dabeaz.com/couroutines) and
check out the contortions in the scheduler to support subgenerators
(Part 8).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-ideas mailing list