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