Message412763
> Is there anyway to get the PyObject* associated with a PyFrameObject*?
Ah. I see. If you pass a PyFrameObject* frame to PyObject_GetAttrString(), you get a compiler warning.
You should cast it explicitly: PyObject_GetAttrString((PyObject*)frame, "f_locals"). |
|
Date |
User |
Action |
Args |
2022-02-07 16:17:09 | vstinner | set | recipients:
+ vstinner, terry.reedy, gregory.p.smith, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal, Skylion007 |
2022-02-07 16:17:08 | vstinner | set | messageid: <1644250628.99.0.748255916239.issue46166@roundup.psfhosted.org> |
2022-02-07 16:17:08 | vstinner | link | issue46166 messages |
2022-02-07 16:17:08 | vstinner | create | |
|