mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-115653: Document PyCode_GetFirstFree() (#115654)
Correct the return type of the PyCode_GetNumFree() documentation.
This commit is contained in:
parent
77430b6a32
commit
10fc4675fd
1 changed files with 6 additions and 2 deletions
|
|
@ -30,9 +30,13 @@ bound into a function.
|
|||
Return true if *co* is a :ref:`code object <code-objects>`.
|
||||
This function always succeeds.
|
||||
|
||||
.. c:function:: int PyCode_GetNumFree(PyCodeObject *co)
|
||||
.. c:function:: Py_ssize_t PyCode_GetNumFree(PyCodeObject *co)
|
||||
|
||||
Return the number of free variables in *co*.
|
||||
Return the number of free variables in a code object.
|
||||
|
||||
.. c:function:: int PyCode_GetFirstFree(PyCodeObject *co)
|
||||
|
||||
Return the position of the first free variable in a code object.
|
||||
|
||||
.. c:function:: PyCodeObject* PyUnstable_Code_New(int argcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue