[Python-Dev] PEP 380 (yield from a subgenerator) comments

Antoine Pitrou solipsis at pitrou.net
Fri Mar 27 11:56:36 CET 2009

Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes:
> It's not really about doing away with trampolines anyway.
> You still need at least one trampoline-like thing at the
> top. What you do away with is the need for creating
> special objects to yield, and the attendant syntactic
> clumisiness and inefficiencies.

No you don't, not in the Twisted case. The fact that useful library routines
return Deferred objects to which you add callbacks and errbacks is probably not
going away, because it's a fundamental building block in Twisted, not a
convenience for scheduling generators.

As a matter of fact, the people whom this PEP is supposed to benefit haven't
expressed a lot of enthusiasm right now. That's why it looks so academic.



More information about the Python-Dev mailing list