This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Henry Schreiner, Mark.Shannon, Skylion007, eric.snow, pablogsal, terry.reedy, vstinner
Date 2022-01-27.17:46:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643305581.5.0.896445445533.issue46166@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2022-01-27 17:46:21Mark.Shannonsetrecipients: + Mark.Shannon, terry.reedy, vstinner, eric.snow, Henry Schreiner, pablogsal, Skylion007
2022-01-27 17:46:21Mark.Shannonsetmessageid: <1643305581.5.0.896445445533.issue46166@roundup.psfhosted.org>
2022-01-27 17:46:21Mark.Shannonlinkissue46166 messages
2022-01-27 17:46:21Mark.Shannoncreate