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


Groups > comp.lang.python > #64022

Re: proposal: bring nonlocal to py2.x

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!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; 'fixes': 0.07; 'variables': 0.07; 'badly': 0.09; 'defines': 0.09; 'enhancements': 0.09; 'false.': 0.09; 'feature.': 0.09; 'fix.': 0.09; 'implements': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spelling': 0.09; 'worse': 0.09; 'api': 0.11; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; '2.7': 0.14; 'mostly': 0.14; 'antoine': 0.16; 'bug,': 0.16; 'discrepancy': 0.16; 'exported': 0.16; 'modules.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'symbols': 0.16; 'unfair': 0.16; 'language': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'module': 0.19; 'version.': 0.19; 'written': 0.21; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'developers': 0.25; 'push': 0.26; 'least': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'chris': 0.29; 'feature': 0.29; 'url:bugs': 0.29; 'am,': 0.29; 'generally': 0.29; 'patch': 0.29; 'strongly': 0.30; '(which': 0.31; 'code': 0.31; '100000': 0.31; 'developers.': 0.31; 'doc': 0.31; 'fixing': 0.31; 'releases,': 0.31; 'skip:c 30': 0.32; 'run': 0.32; 'url:python': 0.33; 'case,': 0.35; 'but': 0.35; 'version': 0.36; 'keyword': 0.36; "didn't": 0.36; 'url:org': 0.36; 'should': 0.36; 'branch': 0.38; 'depends': 0.38; 'to:addr:python- list': 0.38; 'that,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'either': 0.39; 'received:org': 0.40; 'users': 0.40; 'major': 0.40; 'release': 0.40; 'even': 0.60; 'future': 0.60; 'break': 0.61; 'impact': 0.61; 'introduced': 0.61; 'new': 0.61; 'received:173': 0.61; 'times': 0.62; 'approved': 0.65; 'between': 0.67; 'believe': 0.68; '..........': 0.84; '2.7.': 0.84; '2.8': 0.84; 'enforces': 0.84; 'received:fios.verizon.net': 0.84; 'regarded': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: proposal: bring nonlocal to py2.x
Date Wed, 15 Jan 2014 17:24:32 -0500
References <lb0ua4$fmj$1@ger.gmane.org> <CAFYqXL9UTE-2tMpUO313rKgt8vaH1UVnMA=RieuNTHUUUbW2Aw@mail.gmail.com> <lb10e5$d1i$1@ger.gmane.org> <CAPTjJmo_ZD1mMvikx8XjofgfwhDFZrbaXeM2q42-EKR1kFs-Jg@mail.gmail.com> <52D679FD.3060406@chamonix.reportlab.co.uk>
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 <52D679FD.3060406@chamonix.reportlab.co.uk>
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.5548.1389824691.18130.python-list@python.org> (permalink)
Lines 47
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389824691 news.xs4all.nl 2959 [2001:888:2000:d::a6]:37491
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64022

Show key headers only | View raw


On 1/15/2014 7:07 AM, Robin Becker wrote:
> On 13/01/2014 15:28, Chris Angelico wrote:
> ..........
>>
>> It's even worse than that, because adding 'nonlocal' is not a bugfix.
>> So to be committed to the repo, it has to be approved for either 2.7
>> branch (which is in bugfix-only maintenance mode) or 2.8 branch (which
>> does not exist). Good luck. :)
> .......
> fixing badly named variables is not a bug fix either, but that has
> happened in python 2.7. A micro change release changed
>
> compiler.consts.SC_GLOBAL_EXPLICT
> to
> compiler.consts.SC_GLOBAL_EXPLICIT
>
> this is a change of api for the consts module (if you regard exported
> variables as part of its api),

A bug is generally a discrepancy between the doc the defines a version 
of the language and the code that implements that version. Yes, code 
fixes break code that depends on the bug, which is why tests should be 
run with bug-fix releases, and why some bug fixes are treated as 
enhancements and not back-ported. They also fix current and future code 
written to the specification.

Since the compiler.consts submodule is not documented, I believe it was 
regarded as an internal module for use only by the pycodegen and symbols 
modules. The misspelling was introduced in the patch for
   http://bugs.python.org/issue999042
which also introduced SC_GLOBAL_IMPLICIT, correctly spelled. EXPLICT was 
fixed in all three modules by Antoine Pitrou in
   http://bugs.python.org/issue15212

In any case, I estimate the impact of backporting a major new feature 
like a new keyword to be at least 100000 times that of this spelling fix.

 > but that didn't count for the developers.

If you are suggesting that developers casually violate out policy of 
only bug fixes in microreleases, that is unfair and false. It is mostly 
users who push at us to backport their favorite new feature. Antoine 
strongly supports and enforces the policy, as do I.

-- 
Terry Jan Reedy

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


Thread

Re: proposal: bring nonlocal to py2.x Terry Reedy <tjreedy@udel.edu> - 2014-01-15 17:24 -0500

csiph-web