mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
bpo-40421: What's New in Python 3.11: PyFrameObject.f_lasti (GH-31536)
Suggest replacing PyCode_Addr2Line() with PyFrame_GetLineNumber().
This commit is contained in:
parent
281ea9c391
commit
8a716bc62c
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue