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

Michele Simionato michele.simionato at gmail.com
Sat Mar 28 04:26:46 CET 2009


On Fri, Mar 27, 2009 at 1:33 PM, Jesse Noller <jnoller at gmail.com> wrote:
> Antoine Pitrou:
>> 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.
> That's because most of us who might like this have been patently
> avoiding this thread.

I have been avoiding this thread too - even if I have implemented my
own trampoline as
everybody else here - because I had nothing to say that was not said
already here.
But just to add a data point, let me say that I agree with Eby.
I am 0+ on the syntax, but please keep the hidden logic simple and
absolutely do NOT add confusion
between yield and return. Use yield Return(value) or raise SomeException(value),
as you like. The important thing for me is to have a trampoline in the
standard library, not
the syntax.

               Michele Simionato


More information about the Python-Dev mailing list