Message413843
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. |
|
| Date |
User |
Action |
Args |
| 2022-02-23 18:39:38 | vstinner | set | recipients:
+ vstinner, scoder, nedbat, petr.viktorin, Mark.Shannon |
| 2022-02-23 18:39:38 | vstinner | set | messageid: <[email protected]> |
| 2022-02-23 18:39:38 | vstinner | link | issue40421 messages |
| 2022-02-23 18:39:38 | vstinner | create | |
|