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/2000-November/010308.html below:

[Python-Dev] statically nested scopes

[Python-Dev] statically nested scopes [Python-Dev] statically nested scopesTim Peters tim_one@email.msn.com
Thu, 2 Nov 2000 14:10:52 -0500
[Barry A. Warsaw]
> If we get lexical scoping, there should be a fast (built-in) way to
> get at all the accessible names from Python.  I.e. currently I can do
>
>     d = globals().copy()
>     d.update(locals())
>
> and know that `d' contains a dictionary of available names, with the
> right overloading semantics.

It was long ago agreed (don't you love how I pull this stuff out of thin
historical air <wink>?) that if nested lexical scoping was added, we would
need also to supply a new mapping object that mimicked the full Python
lookup rules (including builtins).  Not necessarily a dictionary, though.





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