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 <>
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?
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: <>
2022-01-27 17:46:21Mark.Shannonlinkissue46166 messages
2022-01-27 17:46:21Mark.Shannoncreate