@@ -159,14 +159,14 @@ Glossary
159
159
:class: `str ` objects.
160
160
161
161
borrowed reference
162
- In the Python's C API, a borrowed reference is a reference to an object.
162
+ In Python's C API, a borrowed reference is a reference to an object.
163
163
It does not modify the object reference count. It becomes a dangling
164
164
pointer if the object is destroyed. For example, a garbage collection can
165
165
remove the last :term: `strong reference ` to the object and so destroy it.
166
166
167
167
Calling :c:func: `Py_INCREF ` on the :term: `borrowed reference ` is
168
168
recommended to convert it to a :term: `strong reference ` in-place, except
169
- if the object cannot be destroyed before the last usage of the borrowed
169
+ when the object cannot be destroyed before the last usage of the borrowed
170
170
reference. The :c:func: `Py_NewRef ` function can be used to create a new
171
171
:term: `strong reference `.
172
172
@@ -1113,9 +1113,9 @@ Glossary
1113
1113
as :keyword: `if `, :keyword: `while ` or :keyword: `for `.
1114
1114
1115
1115
strong reference
1116
- In the Python's C API, a strong reference is a reference to an object
1117
- which increments object reference count when it is created and
1118
- decrements the object reference count when it is deleted.
1116
+ In Python's C API, a strong reference is a reference to an object
1117
+ which increments the object's reference count when it is created and
1118
+ decrements the object's reference count when it is deleted.
1119
1119
1120
1120
The :c:func: `Py_NewRef ` function can be used to create a strong reference
1121
1121
to an object. Usually, the :c:func: `Py_DECREF ` function must be called on
0 commit comments