diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-02-11 10:23:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 10:23:30 (GMT) |
commit | 573acb30f22a84c0f2c951efa002c9946e29b6a3 (patch) | |
tree | 195c75ff795a507cb6ebacf7043e364949601b10 /Doc/extending | |
parent | 4a08e7b3431cd32a0daf22a33421cd3035343dc4 (diff) | |
download | cpython-573acb30f22a84c0f2c951efa002c9946e29b6a3.zip cpython-573acb30f22a84c0f2c951efa002c9946e29b6a3.tar.gz cpython-573acb30f22a84c0f2c951efa002c9946e29b6a3.tar.bz2 |
gh-115172: Fix explicit index extries for the C API (GH-115173)
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/extending.rst | 6 | ||||
-rw-r--r-- | Doc/extending/newtypes.rst | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 745fc10..b70e1b1 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -547,7 +547,7 @@ reference count of an object and are safe in the presence of ``NULL`` pointers (but note that *temp* will not be ``NULL`` in this context). More info on them in section :ref:`refcounts`. -.. index:: single: PyObject_CallObject() +.. index:: single: PyObject_CallObject (C function) Later, when it is time to call the function, you call the C function :c:func:`PyObject_CallObject`. This function has two arguments, both pointers to @@ -638,7 +638,7 @@ the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. : Extracting Parameters in Extension Functions ============================================ -.. index:: single: PyArg_ParseTuple() +.. index:: single: PyArg_ParseTuple (C function) The :c:func:`PyArg_ParseTuple` function is declared as follows:: @@ -730,7 +730,7 @@ Some example calls:: Keyword Parameters for Extension Functions ========================================== -.. index:: single: PyArg_ParseTupleAndKeywords() +.. index:: single: PyArg_ParseTupleAndKeywords (C function) The :c:func:`PyArg_ParseTupleAndKeywords` function is declared as follows:: diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 7a92b32..473a418 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -89,8 +89,8 @@ If your type supports garbage collection, the destructor should call } .. index:: - single: PyErr_Fetch() - single: PyErr_Restore() + single: PyErr_Fetch (C function) + single: PyErr_Restore (C function) One important requirement of the deallocator function is that it leaves any pending exceptions alone. This is important since deallocators are frequently |