@@ -121,7 +121,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
121121 single: OverflowError (built-in exception)
122122
123123 Return a C :c:expr:`long` representation of *obj*. If *obj* is not an
124- instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method
124+ instance of :c:type:`PyLongObject`, first call its :meth:`~object. __index__` method
125125 (if present) to convert it to a :c:type:`PyLongObject`.
126126
127127 Raise :exc:`OverflowError` if the value of *obj* is out of range for a
@@ -130,16 +130,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
130130 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
131131
132132 .. versionchanged:: 3.8
133- Use :meth:`__index__` if available.
133+ Use :meth:`~object. __index__` if available.
134134
135135 .. versionchanged:: 3.10
136- This function will no longer use :meth:`__int__`.
136+ This function will no longer use :meth:`~object. __int__`.
137137
138138
139139.. c:function:: long PyLong_AsLongAndOverflow(PyObject *obj, int *overflow)
140140
141141 Return a C :c:expr: `long ` representation of *obj *. If *obj * is not an
142- instance of :c:type: `PyLongObject `, first call its :meth: `__index__ `
142+ instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ `
143143 method (if present) to convert it to a :c:type:`PyLongObject`.
144144
145145 If the value of *obj* is greater than :const :`LONG_MAX` or less than
@@ -150,10 +150,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
150150 Returns ``-1 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
151151
152152 .. versionchanged :: 3.8
153- Use :meth: `__index__ ` if available.
153+ Use :meth: `~object. __index__ ` if available.
154154
155155 .. versionchanged :: 3.10
156- This function will no longer use :meth: `__int__ `.
156+ This function will no longer use :meth: `~object. __int__ `.
157157
158158
159159.. c :function :: long long PyLong_AsLongLong (PyObject *obj)
@@ -162,7 +162,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
162162 single: OverflowError (built-in exception)
163163
164164 Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an
165- instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method
165+ instance of :c:type:`PyLongObject`, first call its :meth:`~object. __index__` method
166166 (if present) to convert it to a :c:type:`PyLongObject`.
167167
168168 Raise :exc:`OverflowError` if the value of *obj* is out of range for a
@@ -171,16 +171,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
171171 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
172172
173173 .. versionchanged:: 3.8
174- Use :meth:`__index__` if available.
174+ Use :meth:`~object. __index__` if available.
175175
176176 .. versionchanged:: 3.10
177- This function will no longer use :meth:`__int__`.
177+ This function will no longer use :meth:`~object. __int__`.
178178
179179
180180.. c:function:: long long PyLong_AsLongLongAndOverflow(PyObject *obj, int *overflow)
181181
182182 Return a C :c:expr: `long long ` representation of *obj *. If *obj * is not an
183- instance of :c:type: `PyLongObject `, first call its :meth: `__index__ ` method
183+ instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ ` method
184184 (if present) to convert it to a :c:type:`PyLongObject`.
185185
186186 If the value of *obj* is greater than :const :`LLONG_MAX` or less than
@@ -193,10 +193,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
193193 .. versionadded :: 3.2
194194
195195 .. versionchanged :: 3.8
196- Use :meth: `__index__ ` if available.
196+ Use :meth: `~object. __index__ ` if available.
197197
198198 .. versionchanged :: 3.10
199- This function will no longer use :meth: `__int__ `.
199+ This function will no longer use :meth: `~object. __int__ `.
200200
201201
202202.. c :function :: Py_ssize_t PyLong_AsSsize_t (PyObject *pylong)
@@ -267,7 +267,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
267267.. c:function:: unsigned long PyLong_AsUnsignedLongMask(PyObject *obj)
268268
269269 Return a C :c:expr: `unsigned long ` representation of *obj *. If *obj * is not
270- an instance of :c:type: `PyLongObject `, first call its :meth: `__index__ `
270+ an instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ `
271271 method (if present) to convert it to a :c:type:`PyLongObject`.
272272
273273 If the value of *obj* is out of range for an :c:expr:`unsigned long`,
@@ -277,17 +277,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
277277 disambiguate.
278278
279279 .. versionchanged:: 3.8
280- Use :meth:`__index__` if available.
280+ Use :meth:`~object. __index__` if available.
281281
282282 .. versionchanged:: 3.10
283- This function will no longer use :meth:`__int__`.
283+ This function will no longer use :meth:`~object. __int__`.
284284
285285
286286.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
287287
288288 Return a C :c:expr: `unsigned long long ` representation of *obj *. If *obj *
289289 is not an instance of :c:type: `PyLongObject `, first call its
290- :meth: `__index__ ` method (if present) to convert it to a
290+ :meth: `~object. __index__ ` method (if present) to convert it to a
291291 :c:type:`PyLongObject`.
292292
293293 If the value of *obj* is out of range for an :c:expr:`unsigned long long`,
@@ -297,10 +297,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
297297 to disambiguate.
298298
299299 .. versionchanged:: 3.8
300- Use :meth:`__index__` if available.
300+ Use :meth:`~object. __index__` if available.
301301
302302 .. versionchanged:: 3.10
303- This function will no longer use :meth:`__int__`.
303+ This function will no longer use :meth:`~object. __int__`.
304304
305305
306306.. c:function:: double PyLong_AsDouble(PyObject *pylong)
0 commit comments