Proposal for a yield from statement for Python

Here is some material concerning a proposed yield from statement.

Draft PEP

PEP XXX: Syntax for Delegating to a Subgenerator

Prototype Implementation

In the form of patches to Python 3.1.2. Also includes some tests and timing experiments.

Download Patches

Simple Examples

Binary Tree

Parser example

Discussion

Code

Scheduler example

Discussion

Code