[Python-Dev] nonlocal keyword in 2.x?
Michael Foord
fuzzyman at voidspace.org.uk
Mon Nov 2 09:29:22 CET 2009
Brett Cannon wrote:
> On Sun, Nov 1, 2009 at 13:39, Raymond Hettinger <python at rcn.com> wrote:
>
>>> As I said: Python 2 support is not only about supporting old versions of
>>> Python,
>>> but also supporting users of Python2-only modules. So 2.7 support will
>>> for the most part be a case not of supporting Python versions, but
>>> Python *users*. And contrary to what Antoine said, that *is* a good
>>> reason to backport it.
>>>
>> FWIW, I support backporting the nonlocal-keyword in 2.7.
>> All of the reasons for introducting nonlocal to 3.x also apply to 2.x.
>> Using the nonlocal keyword in clear and explicit, especially
>> when compared to the existing workarounds which are not pretty.
>>
>
> We are voting, I'm -0.
>
nonlocal is really useful for tests so I'd love to have this in 2.7, but
obviously someone has to do the work so I'm only +0.
Michael
> -Brett
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>
--
http://www.ironpythoninaction.com/
More information about the Python-Dev
mailing list