PyDocs

Nav

Python Runtime Services

getclosurevars

inspect

function · Added in 3.3 (source)
  • getclosurevars(func)
Get the mapping of free variables to their current values.

Returns a named tuple of dicts mapping the current nonlocal, global
and builtin references as seen by the body of the function. A final
set of unbound names that could not be resolved is also provided.
0 Examples
No examples for inspect/getclosurevars.
See Also
No see-alsos for inspect/getclosurevars
0 Notes
No notes for getclosurevars