On 7/24/2010 11:21 PM, Guido van Rossum wrote:
On Sat, Jul 24, 2010 at 6:51 PM, P.J. Eby<p...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com