@@ -137,7 +137,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
137
137
Raise :exc:`OverflowError` if the value of *obj* is out of range for a
138
138
:c:type:`long`.
139
139
140
- Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate.
140
+ Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
141
141
142
142
143
143
.. c:function:: long PyLong_AsLongAndOverflow(PyObject *obj, int *overflow)
@@ -151,7 +151,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
151
151
return ``-1``; otherwise, set *\*overflow* to ``0 ``. If any other exception
152
152
occurs set *\* overflow * to ``0 `` and return ``-1 `` as usual.
153
153
154
- Returns -1 on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
154
+ Returns `` -1 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
155
155
156
156
157
157
.. c :function :: long long PyLong_AsLongLong (PyObject *obj)
@@ -166,7 +166,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
166
166
Raise :exc:`OverflowError` if the value of *obj* is out of range for a
167
167
:c:type:`long`.
168
168
169
- Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate.
169
+ Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
170
170
171
171
172
172
.. c:function:: long long PyLong_AsLongLongAndOverflow(PyObject *obj, int *overflow)
@@ -180,7 +180,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
180
180
and return ``-1``; otherwise, set *\*overflow* to ``0 ``. If any other
181
181
exception occurs set *\* overflow * to ``0 `` and return ``-1 `` as usual.
182
182
183
- Returns -1 on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
183
+ Returns `` -1 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
184
184
185
185
.. versionadded :: 3.2
186
186
@@ -197,7 +197,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
197
197
Raise :exc:`OverflowError` if the value of *pylong* is out of range for a
198
198
:c:type:`Py_ssize_t`.
199
199
200
- Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate.
200
+ Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
201
201
202
202
203
203
.. c:function:: unsigned long PyLong_AsUnsignedLong(PyObject *pylong)
@@ -259,7 +259,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
259
259
If the value of *obj* is out of range for an :c:type:`unsigned long`,
260
260
return the reduction of that value modulo ``ULONG_MAX + 1``.
261
261
262
- Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate.
262
+ Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
263
263
264
264
265
265
.. c:function:: unsigned long long PyLong_AsUnsignedLongLongMask(PyObject *obj)
@@ -271,7 +271,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
271
271
If the value of *obj* is out of range for an :c:type:`unsigned long long`,
272
272
return the reduction of that value modulo ``PY_ULLONG_MAX + 1``.
273
273
274
- Returns -1 on error. Use :c:func:`PyErr_Occurred` to disambiguate.
274
+ Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate.
275
275
276
276
277
277
.. c:function:: double PyLong_AsDouble(PyObject *pylong)
@@ -282,7 +282,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
282
282
Raise :exc: `OverflowError ` if the value of *pylong * is out of range for a
283
283
:c:type: `double `.
284
284
285
- Returns -1.0 on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
285
+ Returns `` -1.0 `` on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
286
286
287
287
288
288
.. c :function :: void * PyLong_AsVoidPtr (PyObject *pylong)
@@ -292,4 +292,4 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
292
292
is only assured to produce a usable :c:type: `void ` pointer for values created
293
293
with :c:func: `PyLong_FromVoidPtr `.
294
294
295
- Returns NULL on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
295
+ Returns * NULL * on error. Use :c:func: `PyErr_Occurred ` to disambiguate.
0 commit comments