@@ -120,7 +120,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
120
120
single: OverflowError (built-in exception)
121
121
122
122
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
124
124
(if present) to convert it to a :c:type:`PyLongObject`.
125
125
126
126
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.
129
129
Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
130
130
131
131
.. versionchanged:: 3.8
132
- Use :meth:`__index__` if available.
132
+ Use :meth:`~object. __index__` if available.
133
133
134
134
.. versionchanged:: 3.10
135
- This function will no longer use :meth:`__int__`.
135
+ This function will no longer use :meth:`~object. __int__`.
136
136
137
137
138
138
.. c:function:: long PyLong_AsLongAndOverflow(PyObject *obj, int *overflow)
139
139
140
140
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__ `
142
142
method (if present) to convert it to a :c:type:`PyLongObject`.
143
143
144
144
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.
149
149
Returns ``-1 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
150
150
151
151
.. versionchanged :: 3.8
152
- Use :meth: `__index__ ` if available.
152
+ Use :meth: `~object. __index__ ` if available.
153
153
154
154
.. versionchanged :: 3.10
155
- This function will no longer use :meth: `__int__ `.
155
+ This function will no longer use :meth: `~object. __int__ `.
156
156
157
157
158
158
.. c :function :: long long PyLong_AsLongLong (PyObject *obj)
@@ -161,7 +161,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
161
161
single: OverflowError (built-in exception)
162
162
163
163
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
165
165
(if present) to convert it to a :c:type:`PyLongObject`.
166
166
167
167
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.
170
170
Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
171
171
172
172
.. versionchanged:: 3.8
173
- Use :meth:`__index__` if available.
173
+ Use :meth:`~object. __index__` if available.
174
174
175
175
.. versionchanged:: 3.10
176
- This function will no longer use :meth:`__int__`.
176
+ This function will no longer use :meth:`~object. __int__`.
177
177
178
178
179
179
.. c:function:: long long PyLong_AsLongLongAndOverflow(PyObject *obj, int *overflow)
180
180
181
181
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
183
183
(if present) to convert it to a :c:type:`PyLongObject`.
184
184
185
185
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.
192
192
.. versionadded :: 3.2
193
193
194
194
.. versionchanged :: 3.8
195
- Use :meth: `__index__ ` if available.
195
+ Use :meth: `~object. __index__ ` if available.
196
196
197
197
.. versionchanged :: 3.10
198
- This function will no longer use :meth: `__int__ `.
198
+ This function will no longer use :meth: `~object. __int__ `.
199
199
200
200
201
201
.. 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.
266
266
.. c:function:: unsigned long PyLong_AsUnsignedLongMask(PyObject *obj)
267
267
268
268
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__ `
270
270
method (if present) to convert it to a :c:type:`PyLongObject`.
271
271
272
272
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.
276
276
disambiguate.
277
277
278
278
.. versionchanged:: 3.8
279
- Use :meth:`__index__` if available.
279
+ Use :meth:`~object. __index__` if available.
280
280
281
281
.. versionchanged:: 3.10
282
- This function will no longer use :meth:`__int__`.
282
+ This function will no longer use :meth:`~object. __int__`.
283
283
284
284
285
285
.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
286
286
287
287
Return a C :c:expr: `unsigned long long ` representation of *obj *. If *obj *
288
288
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
290
290
:c:type:`PyLongObject`.
291
291
292
292
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.
296
296
to disambiguate.
297
297
298
298
.. versionchanged:: 3.8
299
- Use :meth:`__index__` if available.
299
+ Use :meth:`~object. __index__` if available.
300
300
301
301
.. versionchanged:: 3.10
302
- This function will no longer use :meth:`__int__`.
302
+ This function will no longer use :meth:`~object. __int__`.
303
303
304
304
305
305
.. c:function:: double PyLong_AsDouble(PyObject *pylong)
0 commit comments