Message412528
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*. |
|
Date |
User |
Action |
Args |
2022-02-04 19:58:46 | Skylion007 | set | recipients:
+ Skylion007, terry.reedy, gregory.p.smith, vstinner, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal |
2022-02-04 19:58:45 | Skylion007 | set | messageid: <1644004725.96.0.888965171993.issue46166@roundup.psfhosted.org> |
2022-02-04 19:58:45 | Skylion007 | link | issue46166 messages |
2022-02-04 19:58:45 | Skylion007 | create | |
|