消息 [413843]
Mark Shannon:
> The only purpose of `f_lasti` is to get the line number and that can be done directly via `PyFrame_GetLineNumber(PyFrameObject *frame)`
I found the uwsgi project on PyPI which uses f_lasti with PyCode_Addr2Line(). I wrote GH-31536 to suggest using PyFrame_GetLineNumber() in What's New in Python 3.11. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2022-02-23 18:39:38 | vstinner | 修改 | recipients:
+ vstinner, scoder, nedbat, petr.viktorin, Mark.Shannon |
| 2022-02-23 18:39:38 | vstinner | 修改 | messageid: <1645641578.64.0.887854301429.issue40421@roundup.psfhosted.org> |
| 2022-02-23 18:39:38 | vstinner | 链接 | issue40421 messages |
| 2022-02-23 18:39:38 | vstinner | 创建 | |
|