We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3983fca commit 4c1d529Copy full SHA for 4c1d529
Doc/c-api/long.rst
@@ -135,6 +135,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
135
.. versionchanged:: 3.10
136
This function will no longer use :meth:`~object.__int__`.
137
138
+ .. c:namespace:: NULL
139
+
140
+ .. c:function:: long PyLong_AS_LONG(PyObject *obj)
141
142
+ A :term:`soft deprecated` alias.
143
+ Exactly equivalent to the preferred ``PyLong_AsLong``. In particular,
144
+ it can fail with :exc:`OverflowError` or another exception.
145
146
+ .. deprecated:: 3.14
147
+ The function is soft deprecated.
148
149
.. c:function:: long PyLong_AsLongAndOverflow(PyObject *obj, int *overflow)
150
0 commit comments