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 eric.snow
Recipients Henry Schreiner, Mark.Shannon, Skylion007, eric.snow, pablogsal, terry.reedy, vstinner
Date 2022-01-27.17:53:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643306011.26.0.250997037663.issue46166@roundup.psfhosted.org>
In-reply-to
Content
In addition to what Mark said, note that co_varnames get's populated lazily by the Python-level getter for code.co_varnames.  So could you call the Python function before entering the hot path?

Regardless, a dedicated C-API for this like Mark suggested would be the better solution.
History
Date User Action Args
2022-01-27 17:53:31eric.snowsetrecipients: + eric.snow, terry.reedy, vstinner, Mark.Shannon, Henry Schreiner, pablogsal, Skylion007
2022-01-27 17:53:31eric.snowsetmessageid: <1643306011.26.0.250997037663.issue46166@roundup.psfhosted.org>
2022-01-27 17:53:31eric.snowlinkissue46166 messages
2022-01-27 17:53:31eric.snowcreate