Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94000 > unrolled thread

Re: Proposed keyword to transfer control to another function

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-07-17 05:47 -0400
Last post2015-07-17 05:47 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Proposed keyword to transfer control to another function Terry Reedy <tjreedy@udel.edu> - 2015-07-17 05:47 -0400

#94000 — Re: Proposed keyword to transfer control to another function

FromTerry Reedy <tjreedy@udel.edu>
Date2015-07-17 05:47 -0400
SubjectRe: Proposed keyword to transfer control to another function
Message-ID<mailman.637.1437126496.3674.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web