Message412547
> 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, ...} |
|
Date |
User |
Action |
Args |
2022-02-04 22:26:05 | vstinner | set | recipients:
+ vstinner, terry.reedy, gregory.p.smith, Mark.Shannon, eric.snow, Henry Schreiner, pablogsal, Skylion007 |
2022-02-04 22:26:05 | vstinner | set | messageid: <1644013565.11.0.00915973103702.issue46166@roundup.psfhosted.org> |
2022-02-04 22:26:05 | vstinner | link | issue46166 messages |
2022-02-04 22:26:05 | vstinner | create | |
|