diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-23 19:20:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 19:20:03 (GMT) |
commit | 8a716bc62c8205bb9deeda17422b7e69204b6897 (patch) | |
tree | d56b421c9d4bf0cfd0d318247bc57f73d79e53f8 /Doc | |
parent | 281ea9c39146a00cdf3fa2b3d0be60e2a39278ce (diff) | |
download | cpython-8a716bc62c8205bb9deeda17422b7e69204b6897.zip cpython-8a716bc62c8205bb9deeda17422b7e69204b6897.tar.gz cpython-8a716bc62c8205bb9deeda17422b7e69204b6897.tar.bz2 |
bpo-40421: What's New in Python 3.11: PyFrameObject.f_lasti (GH-31536)
Suggest replacing PyCode_Addr2Line() with PyFrame_GetLineNumber().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 34642e3..9744051 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -853,6 +853,8 @@ Porting to Python 3.11 use ``PyObject_GetAttrString((PyObject*)frame, "f_locals")``. * ``f_lasti``: removed, use ``PyObject_GetAttrString((PyObject*)frame, "f_lasti")``. + Code using ``f_lasti`` with ``PyCode_Addr2Line()`` should use + :c:func:`PyFrame_GetLineNumber` instead. The following fields were removed entirely, as they were details of the old implementation: |