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 vstinner
Recipients Henry Schreiner, Mark.Shannon, Skylion007, eric.snow, gregory.p.smith, pablogsal, terry.reedy, vstinner
Date 2022-02-07.16:17:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644250628.99.0.748255916239.issue46166@roundup.psfhosted.org>
In-reply-to
Content
> 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").
History
Date User Action Args
2022-02-07 16:17:09vstinnersetrecipients: + vstinner, terry.reedy, gregory.p.smith, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal, Skylion007
2022-02-07 16:17:08vstinnersetmessageid: <1644250628.99.0.748255916239.issue46166@roundup.psfhosted.org>
2022-02-07 16:17:08vstinnerlinkissue46166 messages
2022-02-07 16:17:08vstinnercreate