[Python-Dev] PEP 380 - return value question and prototype implementation (was Thoughts fresh after EuroPython)
Terry Reedy
tjreedy at udel.edu
Mon Jul 26 01:11:47 CEST 2010
On 7/24/2010 11:21 PM, Guido van Rossum wrote:
> On Sat, Jul 24, 2010 at 6:51 PM, P.J. Eby<pje at telecommunity.com> wrote:
>> By the way, the PEP's "optimized" implementation could probably be done just
>> by making generator functions containing yield-from statements return an
>> object of a different type than the standard geniter.
+ 1
> Not a bad idea.
I have not read the PEP thoroughly enough to understand the new behavior
and suggest another name, but I would really like to not have to change
current references to 'generator instances' in texts to "generators
instances created by generator functions that only contain 'yield' and
not 'yield from'".
--
Terry Jan Reedy
More information about the Python-Dev
mailing list