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-04.22:26:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644013565.11.0.00915973103702.issue46166@roundup.psfhosted.org>
In-reply-to
Content
> PyObject_GetAttrString(frame, "f_locals") doesn't work for PyFrameObject*

Oh, would you mind to elaborate?

Example in Python:

$ ./python
Python 3.11.0a5+ 
>>> import sys
>>> f=sys._getframe()
>>> f.f_locals
{'__name__': '__main__', '__doc__': None, ...}
History
Date User Action Args
2022-02-04 22:26:05vstinnersetrecipients: + vstinner, terry.reedy, gregory.p.smith, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal, Skylion007
2022-02-04 22:26:05vstinnersetmessageid: <1644013565.11.0.00915973103702.issue46166@roundup.psfhosted.org>
2022-02-04 22:26:05vstinnerlinkissue46166 messages
2022-02-04 22:26:05vstinnercreate