[Python-Dev] statically nested scopes
Tim 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.