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 Skylion007
Recipients Henry Schreiner, Mark.Shannon, Skylion007, eric.snow, gregory.p.smith, pablogsal, terry.reedy, vstinner
Date 2022-02-04.19:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644004725.96.0.888965171993.issue46166@roundup.psfhosted.org>
In-reply-to
Content
I saw the latest Python 3.11 5A release notes on the frame API changes. Do the notes mean the only officially supported way of accessing co_varnames is now through the Python interface and the inspect module? By using PyObject_GetAttrString?

Also, the documentation in the WhatsNew is a bit unclear as PyObject_GetAttrString(frame, "f_locals") doesn't work for PyFrameObject*, only PyObject* and it doesn't describe how to get the PyObject* version of FrameObject. The same problem also happens when trying to access the co_varnames field of the PyCodeObject*.
History
Date User Action Args
2022-02-04 19:58:46Skylion007setrecipients: + Skylion007, terry.reedy, gregory.p.smith, vstinner, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal
2022-02-04 19:58:45Skylion007setmessageid: <1644004725.96.0.888965171993.issue46166@roundup.psfhosted.org>
2022-02-04 19:58:45Skylion007linkissue46166 messages
2022-02-04 19:58:45Skylion007create