[issue30951] Documentation error in inspect module

Xavier Morel report at bugs.python.org
Thu Jun 25 08:09:04 EDT 2020


Xavier Morel <xavier.morel at masklinn.net> added the comment:

Maybe something along the lines of "names other than arguments and function locals", or "names of the symbols used in the code object, other than arguments and function locals"? This is still slightly confusing because in the case of an import the name is present in both mappings, but less so than the outright lie of the current version.

Serhiy, is there a way to access the class's code object from Python? Also does that mean varnames is not used by class code objects despite it stating unambiguously that it stores locals?

----------
nosy: +xmorel

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30951>
_______________________________________


More information about the Python-bugs-list mailing list