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


Groups > comp.lang.python > #63831

Re: proposal: bring nonlocal to py2.x

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'badly': 0.09; 'lawrence': 0.09; 'lost.': 0.09; 'modifies': 0.09; 'raises': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tests,': 0.09; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; 'language.': 0.14; 'backward': 0.16; 'finds': 0.16; 'gonna': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simples': 0.16; 'url:peps': 0.16; 'language': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'header :User-Agent:1': 0.23; 'url:dev': 0.24; 'fairly': 0.24; 'helpful': 0.24; 'mon,': 0.24; 'source': 0.25; 'tracker': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; '13,': 0.31; 'url:python': 0.33; 'could': 0.34; 'but': 0.35; 'url:org': 0.36; 'unit': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'warm': 0.60; 'back': 0.62; 'happen': 0.63; 'our': 0.64; 'received:2': 0.84; 'ports': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: proposal: bring nonlocal to py2.x
Date Mon, 13 Jan 2014 15:24:01 +0000
References <lb0ua4$fmj$1@ger.gmane.org> <CAFYqXL9UTE-2tMpUO313rKgt8vaH1UVnMA=RieuNTHUUUbW2Aw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-2-98-200-239.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <CAFYqXL9UTE-2tMpUO313rKgt8vaH1UVnMA=RieuNTHUUUbW2Aw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5407.1389626656.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389626656 news.xs4all.nl 2941 [2001:888:2000:d::a6]:40780
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63831

Show key headers only | View raw


On 13/01/2014 15:12, Giampaolo Rodola' wrote:
>
> On Mon, Jan 13, 2014 at 3:47 PM, Neal Becker <ndbecker2@gmail.com
> <mailto:ndbecker2@gmail.com>> wrote:
>
>     py3 includes a fairly compelling feature: nonlocal keywork
>     But backward compatibility is lost.  It would be very helpful
>     if this was available on py2.x.
>
> It's not gonna happens as per PEP-404:
> http://www.python.org/dev/peps/pep-0404/
>

But it could theoretically happen if Neal wants it so badly that he 
raises an issue on the bug tracker against Python 2.7, finds all the 
relevant source code in Python 3, back ports it, modifies all the 
relevant docs and unit tests, then finds some warm hearted person to 
commit the changes.  Five minute job.  Simples :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: proposal: bring nonlocal to py2.x Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-13 15:24 +0000

csiph-web