summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-28 22:56:58 (GMT)
committerGitHub <noreply@github.com>2020-04-28 22:56:58 (GMT)
commit6d86a2331e6b64a2ae80c1a21f81baa5a71ac594 (patch)
tree43b1e88fff7e3122019b4d948758534aeed39a87 /Doc
parent521c8d6806adf0305c158d280ec00cca48e8ab22 (diff)
downloadcpython-6d86a2331e6b64a2ae80c1a21f81baa5a71ac594.zip
cpython-6d86a2331e6b64a2ae80c1a21f81baa5a71ac594.tar.gz
cpython-6d86a2331e6b64a2ae80c1a21f81baa5a71ac594.tar.bz2
bpo-40429: PyFrame_GetCode() result cannot be NULL (GH-19772)
Add frame_nslots() to factorize duplicate code.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/reflection.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/c-api/reflection.rst b/Doc/c-api/reflection.rst
index b313ea3..594c1ec 100644
--- a/Doc/c-api/reflection.rst
+++ b/Doc/c-api/reflection.rst
@@ -34,6 +34,7 @@ Reflection
.. c:function:: int PyFrame_GetCode(PyFrameObject *frame)
Return a borrowed reference to the *frame* code.
+ The frame code cannot be ``NULL``.
*frame* must not be ``NULL``.