[Python-Dev] nonlocal keyword in 2.x?

Brett Cannon brett at python.org
Mon Nov 2 00:57:21 CET 2009


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.

-Brett


More information about the Python-Dev mailing list