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/2003-October/039258.html below:

[Python-Dev] closure semantics

[Python-Dev] closure semantics [Python-Dev] closure semanticsJeremy Hylton jeremy at alum.mit.edu
Tue Oct 21 23:46:00 EDT 2003
On Tue, 2003-10-21 at 23:34, Barry Warsaw wrote:
> On Tue, 2003-10-21 at 23:00, Jeremy Hylton wrote:
> 
> > I would prefer to see a separate statement similar to global that meant
> > "look for the nearest enclosing binding."  Rather than specifying that
> > you want to use x from outer, you could only say you don't want x to be
> > local.  That means you'd always get intermediate.
> 
> Would those "up" bindings chain?

Yes.  If a block had an up declaration and it contained a nested block
with an up declaration for the same variable, both blocks would refer to
an outer binding.

Jeremy



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