[Python-Dev] statically nested scopes

Barry A. Warsaw barry@wooz.org
Thu, 2 Nov 2000 11:22:32 -0500 (EST)

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()

and know that `d' contains a dictionary of available names, with the
right overloading semantics.  (PEP 42 now includes a feature request
to make vars() do this by default.)