mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40429: PyFrame_GetCode() result cannot be NULL (GH-19772)
Add frame_nslots() to factorize duplicate code.
This commit is contained in:
parent
521c8d6806
commit
6d86a2331e
7 changed files with 45 additions and 48 deletions
|
@ -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``.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue