Debian Codegraph @

pypy/module/__builtin__/interp_inspect.py

raw symbols SCIP
1
2 def globals(space):
3 "Return the dictionary containing the current scope's global variables."
4 ec = space.getexecutioncontext()
5 return ec.gettopframe_nohidden().get_w_globals()
6
7 def locals(space):
8 """Return a dictionary containing the current scope's local variables.
9 Note that this may be the real dictionary of local variables, or a copy."""
10 ec = space.getexecutioncontext()
11 return ec.gettopframe_nohidden().getdictscope()
12