@@ -11,20 +11,20 @@ simple reference object, and the second acts as a proxy for the original object
11
11
as much as it can.
12
12
13
13
14
- .. c :function :: int PyWeakref_Check (ob)
14
+ .. c :function :: int PyWeakref_Check (PyObject * ob)
15
15
16
- Return true if *ob* is either a reference or proxy object. This function
16
+ Return non-zero if *ob * is either a reference or proxy object. This function
17
17
always succeeds.
18
18
19
19
20
- .. c:function:: int PyWeakref_CheckRef(ob)
20
+ .. c :function :: int PyWeakref_CheckRef (PyObject * ob)
21
21
22
- Return true if *ob* is a reference object. This function always succeeds.
22
+ Return non-zero if *ob * is a reference object. This function always succeeds.
23
23
24
24
25
- .. c:function:: int PyWeakref_CheckProxy(ob)
25
+ .. c :function :: int PyWeakref_CheckProxy (PyObject * ob)
26
26
27
- Return true if *ob* is a proxy object. This function always succeeds.
27
+ Return non-zero if *ob * is a proxy object. This function always succeeds.
28
28
29
29
30
30
.. c :function :: PyObject* PyWeakref_NewRef (PyObject *ob, PyObject *callback)
@@ -53,7 +53,8 @@ as much as it can.
53
53
54
54
.. c :function :: int PyWeakref_GetRef (PyObject *ref, PyObject **pobj)
55
55
56
- Get the referenced object from a weak reference, *ref *, into *\* pobj *.
56
+ Get a :term: `strong reference ` to the referenced object from a weak
57
+ reference, *ref *, into *\* pobj *.
57
58
Return 0 on success. Raise an exception and return -1 on error.
58
59
59
60
If the referent is no longer live, set *\* pobj * to ``NULL `` and return 0.
@@ -63,8 +64,8 @@ as much as it can.
63
64
64
65
.. c :function :: PyObject* PyWeakref_GetObject (PyObject *ref)
65
66
66
- Return the referenced object from a weak reference, * ref *. If the referent is
67
- no longer live, returns :const: ` Py_None `.
67
+ Return a :term: ` borrowed reference ` to the referenced object from a weak
68
+ reference, * ref *. If the referent is no longer live, returns `` Py_None ` `.
68
69
69
70
.. note ::
70
71
0 commit comments