消息 [415779]
> In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a frame to get all variables as a dictionary.
In 2018, it was decided to *not* document this function: see bpo-19431.
In C, It is possible to call PyObject_GetAttrString(frame, "f_locals") to call indirectly _PyFrame_FastToLocalsWithError() and get the dictionary. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2022-03-22 14:47:09 | vstinner | 修改 | recipients:
+ vstinner, ncoghlan, Mark.Shannon |
| 2022-03-22 14:47:09 | vstinner | 修改 | messageid: <1647960429.42.0.471997567218.issue47092@roundup.psfhosted.org> |
| 2022-03-22 14:47:09 | vstinner | 链接 | issue47092 messages |
| 2022-03-22 14:47:09 | vstinner | 创建 | |
|