Mark Shannon <[email protected]> added the comment:
Yes, we should expose the tuple of variable names, both in Python and in the C-API. Would something like `PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work? In the meantime, since you were reading `co_varnames` directly, why not read `co_localsplusnames` directly? OOI, how do you cope with non-local self? ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue46166> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
