Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer
frame.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.9
Return a :term:`strong reference`. The result cannot be ``NULL``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
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
Return a :term:`strong reference`, or ``NULL``.
- *frame* must not be ``NULL``.
-
.. versionadded:: 3.11
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
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``.