diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-28 17:01:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 17:01:31 (GMT) |
commit | a42ca74fa30227e2f89a619332557cf093a937d5 (patch) | |
tree | a3097e76897d8f8a0f054cab0736fd3cff80f8da /Misc | |
parent | b8f704d2190125a7750b50cd9b67267b9c20fd43 (diff) | |
download | cpython-a42ca74fa30227e2f89a619332557cf093a937d5.zip cpython-a42ca74fa30227e2f89a619332557cf093a937d5.tar.gz cpython-a42ca74fa30227e2f89a619332557cf093a937d5.tar.bz2 |
bpo-40421: Add PyFrame_GetCode() function (GH-19757)
PyFrame_GetCode(frame): return a borrowed reference to the frame
code.
Replace frame->f_code with PyFrame_GetCode(frame) in most code,
except in frameobject.c, genobject.c and ceval.c.
Also add PyFrame_GetLineNumber() to the limited C API.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2020-04-28-15-47-58.bpo-40421.ZIzOV0.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-04-28-15-47-58.bpo-40421.ZIzOV0.rst b/Misc/NEWS.d/next/C API/2020-04-28-15-47-58.bpo-40421.ZIzOV0.rst new file mode 100644 index 0000000..11cf878 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2020-04-28-15-47-58.bpo-40421.ZIzOV0.rst @@ -0,0 +1,2 @@ +New :c:func:`PyFrame_GetCode` function: return a borrowed reference to the +frame code. |