[Python-ideas] Cofunctions/yield from -> fibers
debatem1 at gmail.com
Fri Aug 13 07:07:31 CEST 2010
On Thu, Aug 12, 2010 at 9:55 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> On 13/08/10 13:02, Ivan Pozdeev wrote:
>> The original proposal for introducing 'yield from' (which is still
>> in PEP 380's name) was to delegate a part of generator's work to another
>> However, in later discussions, the focus totally shifted to
>> cooperative multitasking.
> I still regard delegation as an important use case for
> yield-from. I haven't dwelled much on delegation of plain
> value-yielding generators in my examples because it seems
> rather obvious and straightforward. My coroutine examples
> are meant to show the motivation for some of the less-obvious
> aspects of yield-from, such as the ability to return a value.
I won't pretend to understand the current discussion or its
motivation, but I know I would appreciate it if examples of the
obvious-and-straightforward variety were added.
More information about the Python-ideas