summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-19 07:53:10 (GMT)
committerGitHub <noreply@github.com>2022-04-19 07:53:10 (GMT)
commitaa5c0a9f8dd935a7afff07abb5a60d492c40f2cb (patch)
tree4c407b6406a15c5d8ed07568f90c1550acd6e9b1 /Doc
parent7fbc7f61280d301c0ac88b65ee8747fcf19f01f8 (diff)
downloadcpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.zip
cpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.tar.gz
cpython-aa5c0a9f8dd935a7afff07abb5a60d492c40f2cb.tar.bz2
bpo-40421: Cleanup PyFrame C API (GH-32417)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/frame.rst18
1 files changed, 2 insertions, 16 deletions
diff --git a/Doc/c-api/frame.rst b/Doc/c-api/frame.rst
index 68e5dc6..46ce700 100644
--- a/Doc/c-api/frame.rst
+++ b/Doc/c-api/frame.rst
@@ -27,8 +27,6 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer
frame.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.9
@@ -38,8 +36,6 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`. The result cannot be ``NULL``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
@@ -49,7 +45,7 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`.
- *frame* must not be ``NULL``. The result (frame code) cannot be ``NULL``.
+ The result (frame code) cannot be ``NULL``.
.. versionadded:: 3.9
@@ -62,8 +58,6 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`, or ``NULL``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
@@ -73,19 +67,15 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`. The result cannot be ``NULL``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
.. c:function:: int PyFrame_GetLasti(PyFrameObject *frame)
- Get the *frame*'s ``f_lasti`` attribute (:class:`dict`).
+ Get the *frame*'s ``f_lasti`` attribute.
Returns -1 if ``frame.f_lasti`` is ``None``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
@@ -95,13 +85,9 @@ See also :ref:`Reflection <reflection>`.
Return a :term:`strong reference`.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
.. c:function:: int PyFrame_GetLineNumber(PyFrameObject *frame)
Return the line number that *frame* is currently executing.
-
- *frame* must not be ``NULL``.