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/039442.html below:

[Python-Dev] closure semantics

[Python-Dev] closure semantics [Python-Dev] closure semanticsJoshua Marshall jmarshal at mathworks.com
Fri Oct 24 11:56:21 EDT 2003
[Timothy]
> It would break any unadorned 'global x' in a nested scope if the
> name did not exist anywhere.
> 
> One option would be to have an "if the name doesn't exist, it it 
> created in module scope".

[Greg Ewing]
> What would be wrong with that? It's what I had in mind.

I believe the <<- operator in the statistical language R
<http://www.r-project.org/> behaves exactly like this.  While not
a compelling reason in itself to adopt this behavior, it's useful
to consider constructs in other successful languages.

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