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 Mark.Shannon, nedbat, petr.viktorin, scoder, vstinner
Date 2022-02-23.18:39:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645641578.64.0.887854301429.issue40421@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-02-23 18:39:38vstinnersetrecipients: + vstinner, scoder, nedbat, petr.viktorin, Mark.Shannon
2022-02-23 18:39:38vstinnersetmessageid: <1645641578.64.0.887854301429.issue40421@roundup.psfhosted.org>
2022-02-23 18:39:38vstinnerlinkissue40421 messages
2022-02-23 18:39:38vstinnercreate