Proposed keyword to transfer control to another function
tjreedy at udel.edu
Fri Jul 17 11:47:50 CEST 2015
On 7/17/2015 3:17 AM, Antoon Pardon wrote:
> On 07/17/2015 01:46 AM, Chris Angelico wrote:
>> Open for bikeshedding: What should the keyword be? We can't use
>> "exec", which would match Unix and shell usage, because it's already
>> used in a rather different sense in Python. Current candidates:
>> "transfer", "goto", "recurse", and anything else you suggest.
> I propose the combination "return from".
Much better. I believe 'yield from' actually cuts out the middle frame
containing yield from.
Terry Jan Reedy
More information about the Python-list