A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-November/093515.html below:

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

[Python-Dev] nonlocal keyword in 2.x? [Python-Dev] nonlocal keyword in 2.x?Raymond Hettinger python at rcn.com
Sun Nov 1 22:39:36 CET 2009
> 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.


Raymond
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4