mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
[3.12] gh-107298: Fix Sphinx warnings in the C API doc (GH-107302) (GH-107375)
(cherry picked from commit 391e03fa05)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
4f72a9a2e0
commit
ef7422a1b9
12 changed files with 29 additions and 37 deletions
|
|
@ -11,18 +11,18 @@ simple reference object, and the second acts as a proxy for the original object
|
|||
as much as it can.
|
||||
|
||||
|
||||
.. c:function:: int PyWeakref_Check(ob)
|
||||
.. c:function:: int PyWeakref_Check(PyObject *ob)
|
||||
|
||||
Return true if *ob* is either a reference or proxy object. This function
|
||||
always succeeds.
|
||||
|
||||
|
||||
.. c:function:: int PyWeakref_CheckRef(ob)
|
||||
.. c:function:: int PyWeakref_CheckRef(PyObject *ob)
|
||||
|
||||
Return true if *ob* is a reference object. This function always succeeds.
|
||||
|
||||
|
||||
.. c:function:: int PyWeakref_CheckProxy(ob)
|
||||
.. c:function:: int PyWeakref_CheckProxy(PyObject *ob)
|
||||
|
||||
Return true if *ob* is a proxy object. This function always succeeds.
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ as much as it can.
|
|||
.. c:function:: PyObject* PyWeakref_GetObject(PyObject *ref)
|
||||
|
||||
Return the referenced object from a weak reference, *ref*. If the referent is
|
||||
no longer live, returns :const:`Py_None`.
|
||||
no longer live, returns ``Py_None``.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue