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


Groups > comp.lang.python > #63829

Re: proposal: bring nonlocal to py2.x

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.036
X-Spam-Evidence '*H*': 0.94; '*S*': 0.01; 'lost.': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'jan': 0.12; 'backward': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'fairly': 0.24; 'helpful': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'this.': 0.32; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'being': 0.38; 'developed.': 0.84; '1:47': 0.91; 'migrating': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=XwqeRX3oL+i0jtvXgdjojbe0cg1EJ9UhJzOja5fJLSQ=; b=CIsNrJqP0NDLXngtHGwHqpxy1GVDJIkdIevzpV5BkT9mcilAhKitL2XBQkFPqy0qfX ZrSEGL54tURQowUiZDRPN0fKzB/yb2/WNUf/GtR+ghm/2lhAguBZ97wmqnS2woT1EZru 70iyDkG+E/A1N+jMv5OfQLe/HNbmCR+V+I96rlGjgKn6XzVrsPqaD/R+AVqiXMIj7mLG gCGFMvwghEjPDnh5IoKcSQyLzhSLJ9+0HlHyYTxUJYbVirRbr7k3Yx41g73WRJOaSnhS PWZ/yQhHkitdtL4V634ihYEBxJiN6TRUVlU6pvLC+KFCWdTA8FiVI8GMCUZwnVV7m3Fo v2NA==
MIME-Version 1.0
X-Received by 10.68.201.10 with SMTP id jw10mr30263320pbc.25.1389624937120; Mon, 13 Jan 2014 06:55:37 -0800 (PST)
In-Reply-To <lb0ua4$fmj$1@ger.gmane.org>
References <lb0ua4$fmj$1@ger.gmane.org>
Date Tue, 14 Jan 2014 01:55:36 +1100
Subject Re: proposal: bring nonlocal to py2.x
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.5405.1389625274.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389625274 news.xs4all.nl 2863 [2001:888:2000:d::a6]:32810
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63829

Show key headers only | View raw


On Tue, Jan 14, 2014 at 1:47 AM, Neal Becker <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.

Python 2.x is no longer being developed. It won't be gaining features
like this. Use the nonlocal feature as a reason for migrating to
Python 3 :)

ChrisA

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


Thread

Re: proposal: bring nonlocal to py2.x Chris Angelico <rosuav@gmail.com> - 2014-01-14 01:55 +1100

csiph-web