PyDocs

Nav

Python Runtime Services

getgeneratorlocals

inspect

function · Added in 3.3 (source)
  • getgeneratorlocals(generator)
Get the mapping of generator local variables to their current values.

A dict is returned, with the keys the local variable names and values the
bound values.

The official docs include a CPython implementation detail for this entry.

0 Examples
No examples for inspect/getgeneratorlocals.
See Also
No see-alsos for inspect/getgeneratorlocals
0 Notes
No notes for getgeneratorlocals