@@ -120,7 +120,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
120120 single: OverflowError (built-in exception)
121121
122122 Return a C :c:expr:`long` representation of *obj*. If *obj* is not an
123- instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method
123+ instance of :c:type:`PyLongObject`, first call its :meth:`~object. __index__` method
124124 (if present) to convert it to a :c:type:`PyLongObject`.
125125
126126 Raise :exc:`OverflowError` if the value of *obj* is out of range for a
@@ -129,16 +129,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
129129 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
130130
131131 .. versionchanged:: 3.8
132- Use :meth:`__index__` if available.
132+ Use :meth:`~object. __index__` if available.
133133
134134 .. versionchanged:: 3.10
135- This function will no longer use :meth:`__int__`.
135+ This function will no longer use :meth:`~object. __int__`.
136136
137137
138138.. c:function:: long PyLong_AsLongAndOverflow(PyObject *obj, int *overflow)
139139
140140 Return a C :c:expr: `long ` representation of *obj *. If *obj * is not an
141- instance of :c:type: `PyLongObject `, first call its :meth: `__index__ `
141+ instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ `
142142 method (if present) to convert it to a :c:type:`PyLongObject`.
143143
144144 If the value of *obj* is greater than :const :`LONG_MAX` or less than
@@ -149,10 +149,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
149149 Returns ``-1 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
150150
151151 .. versionchanged :: 3.8
152- Use :meth: `__index__ ` if available.
152+ Use :meth: `~object. __index__ ` if available.
153153
154154 .. versionchanged :: 3.10
155- This function will no longer use :meth: `__int__ `.
155+ This function will no longer use :meth: `~object. __int__ `.
156156
157157
158158.. c :function :: long long PyLong_AsLongLong (PyObject *obj)
@@ -161,7 +161,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
161161 single: OverflowError (built-in exception)
162162
163163 Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an
164- instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method
164+ instance of :c:type:`PyLongObject`, first call its :meth:`~object. __index__` method
165165 (if present) to convert it to a :c:type:`PyLongObject`.
166166
167167 Raise :exc:`OverflowError` if the value of *obj* is out of range for a
@@ -170,16 +170,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
170170 Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
171171
172172 .. versionchanged:: 3.8
173- Use :meth:`__index__` if available.
173+ Use :meth:`~object. __index__` if available.
174174
175175 .. versionchanged:: 3.10
176- This function will no longer use :meth:`__int__`.
176+ This function will no longer use :meth:`~object. __int__`.
177177
178178
179179.. c:function:: long long PyLong_AsLongLongAndOverflow(PyObject *obj, int *overflow)
180180
181181 Return a C :c:expr: `long long ` representation of *obj *. If *obj * is not an
182- instance of :c:type: `PyLongObject `, first call its :meth: `__index__ ` method
182+ instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ ` method
183183 (if present) to convert it to a :c:type:`PyLongObject`.
184184
185185 If the value of *obj* is greater than :const :`LLONG_MAX` or less than
@@ -192,10 +192,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
192192 .. versionadded :: 3.2
193193
194194 .. versionchanged :: 3.8
195- Use :meth: `__index__ ` if available.
195+ Use :meth: `~object. __index__ ` if available.
196196
197197 .. versionchanged :: 3.10
198- This function will no longer use :meth: `__int__ `.
198+ This function will no longer use :meth: `~object. __int__ `.
199199
200200
201201.. c :function :: Py_ssize_t PyLong_AsSsize_t (PyObject *pylong)
@@ -266,7 +266,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
266266.. c:function:: unsigned long PyLong_AsUnsignedLongMask(PyObject *obj)
267267
268268 Return a C :c:expr: `unsigned long ` representation of *obj *. If *obj * is not
269- an instance of :c:type: `PyLongObject `, first call its :meth: `__index__ `
269+ an instance of :c:type: `PyLongObject `, first call its :meth: `~object. __index__ `
270270 method (if present) to convert it to a :c:type:`PyLongObject`.
271271
272272 If the value of *obj* is out of range for an :c:expr:`unsigned long`,
@@ -276,17 +276,17 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
276276 disambiguate.
277277
278278 .. versionchanged:: 3.8
279- Use :meth:`__index__` if available.
279+ Use :meth:`~object. __index__` if available.
280280
281281 .. versionchanged:: 3.10
282- This function will no longer use :meth:`__int__`.
282+ This function will no longer use :meth:`~object. __int__`.
283283
284284
285285.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
286286
287287 Return a C :c:expr: `unsigned long long ` representation of *obj *. If *obj *
288288 is not an instance of :c:type: `PyLongObject `, first call its
289- :meth: `__index__ ` method (if present) to convert it to a
289+ :meth: `~object. __index__ ` method (if present) to convert it to a
290290 :c:type:`PyLongObject`.
291291
292292 If the value of *obj* is out of range for an :c:expr:`unsigned long long`,
@@ -296,10 +296,10 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
296296 to disambiguate.
297297
298298 .. versionchanged:: 3.8
299- Use :meth:`__index__` if available.
299+ Use :meth:`~object. __index__` if available.
300300
301301 .. versionchanged:: 3.10
302- This function will no longer use :meth:`__int__`.
302+ This function will no longer use :meth:`~object. __int__`.
303303
304304
305305.. c:function:: double PyLong_AsDouble(PyObject *pylong)
0 commit comments