Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'broken': 0.03; 'python.': 0.11; '>on': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'identifier.': 0.16; 'keyword,': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'sense,': 0.16; 'simpson': 0.16; 'usage,': 0.16; 'wrote:': 0.16; 'say,': 0.18; 'shell': 0.18; '>>>': 0.20; '2015': 0.20; 'preferred': 0.20; 'to:name:python-list@python.org': 0.20; 'cheers,': 0.22; 'am,': 0.23; 'unix': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'sense': 0.26; 'chris': 0.26; 'fri,': 0.27; 'this.': 0.28; 'possession': 0.29; "can't": 0.32; 'combination': 0.33; 'open': 0.33; 'similar': 0.33; 'propose': 0.35; 'should': 0.36; 'keyword': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; "won't": 0.38; 'anything': 0.38; 'whatever': 0.39; 'enough': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'programs': 0.62; 'different': 0.63; 'cameron': 0.66; 'jul': 0.72; 'received:61': 0.72; '"yield': 0.84; 'from"': 0.84; 'pardon': 0.84 X-Authentication-Info: Submitted using ID cskk@bigpond.com X-Authority-Analysis: v=2.0 cv=Os7NOlDt c=1 sm=1 a=K9W63cI6iR7XcxQPt84Yiw==:17 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=yEdEr6MRgwAA:10 a=zOBTXjUuO1YA:10 a=pGLkceISAAAA:8 a=gE639W2TRkKQxPC5E4oA:9 a=CjuIK1q_8ugA:10 a=K9W63cI6iR7XcxQPt84Yiw==:117 Date: Sat, 18 Jul 2015 09:31:17 +1000 From: Cameron Simpson To: "python-list@python.org" Subject: Re: Proposed keyword to transfer control to another function MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) References: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437177558 news.xs4all.nl 2877 [2001:888:2000:d::a6]:56482 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94041 On 17Jul2015 20:43, Chris Angelico wrote: >On Fri, Jul 17, 2015 at 5:17 PM, 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". I think it is similar enough >> with "yield from" to justify this and it also won't need an extra >> keyword, so no programs will be broken because they used "transfer", >> "goto" or whatever other new keyword as an identifier. >> > >Oooh I like this. The parallel makes sense, and as you say, no new >keyword. Yes, "return from" is my new preferred command! +1 Cheers, Cameron Simpson A pessimist is an optimist in full possession of the facts.