Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'versions.': 0.07; 'feature,': 0.09; 'feature.': 0.09; 'lost.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'release,': 0.09; 'someone,': 0.09; 'jan': 0.12; 'backward': 0.16; 'gained': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sequence.': 0.16; 'successor': 0.16; 'wrote:': 0.18; 'library': 0.18; 'version.': 0.19; 'later': 0.20; 'header:User-Agent:1': 0.23; '2.2': 0.24; 'refers': 0.24; 'earlier': 0.24; 'fairly': 0.24; 'helpful': 0.24; 'developers': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'feature': 0.29; 'am,': 0.29; 'code': 0.31; 'restricted': 0.31; 'compatible': 0.32; 'used,': 0.33; 'core': 0.34; 'maybe': 0.34; 'classes': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'sequence': 0.36; 'done': 0.36; 'sometimes': 0.38; 'version,': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'is.': 0.60; 'new': 0.61; 'received:173': 0.61; 'refer': 0.63; 'more': 0.64; '2.7.': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: proposal: bring nonlocal to py2.x Date: Mon, 13 Jan 2014 16:26:26 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389648402 news.xs4all.nl 2878 [2001:888:2000:d::a6]:37993 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63864 On 1/13/2014 9:47 AM, Neal Becker wrote: > py3 includes a fairly compelling feature: nonlocal keywork [keyword] > But backward compatibility is lost. I am not sure what your particular point is. Every new feature, in any release, if used, makes code not compatible with earlier releases that do not have the feature. Every new feature is compelling to someone, and to use it, one must use a version that has it. > It would be very helpful if this was available on py2.x. For every new feature, there is someone who thinks it would be helpful if it were availale in an earlier version. Backports of library features are sometimes available on PyPI, but this cannot be done for syntax features like 'nonlocal'. '2.x' refers to a sequence of feature-frozen versions. It literally means '2.0 to 2.7', but may refer to '2.2 to 2.7' (because 2.2 gained new classes and iterators) or even a more restricted sequence. Core developers consider 3.2, or maybe a later version, to be the successor of 2.7. -- Terry Jan Reedy