[issue46166] Get "self" args or non-null co_varnames from frame object with C-API
Aaron Gokaslan
report at bugs.python.org
Mon Jan 31 11:17:45 EST 2022
Aaron Gokaslan <aaronGokaslan at gmail.com> added the comment:
`PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work?
- Some public-gettters such as these functions would be ideal.
OOI, how do you cope with non-local self?
- We only care about checking self to prevent an infinite recursion in our method dispatch code so I am not sure a non-local self would be applicable in this case? Correct me if I am wrong.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46166>
_______________________________________
More information about the Python-bugs-list
mailing list