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


Groups > comp.lang.python > #63864

Re: proposal: bring nonlocal to py2.x

From Terry Reedy <tjreedy@udel.edu>
Subject Re: proposal: bring nonlocal to py2.x
Date 2014-01-13 16:26 -0500
References <lb0ua4$fmj$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.5430.1389648402.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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-13 16:26 -0500

csiph-web