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/2010-December/106981.html below:

[Python-Dev] nonlocal x = value

[Python-Dev] nonlocal x = value [Python-Dev] nonlocal x = valueLaurens Van Houtven lvh at laurensvh.be
Thu Dec 23 22:03:49 CET 2010
On Thu, Dec 23, 2010 at 9:51 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> Yes and no -- there may not be an ambiguity to the parser, but still to
> the human.  Except if you disallow the syntax in any case, requiring
> people to write
>
> nonlocal x = (3, y)
>
> which is then again inconsistent with ordinary assignment statements.
>
> Georg

Right -- but (and hence the confusion) I was arguing for not mixing
global/nonlocal with assignment at all, and instead having nonlocal
and global only take one or more names. That would (obviously) remove
any such ambiguity ;-)

cheers
lvh
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