File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
159
159
.. versionadded:: 3.13
160
160
161
161
162
- .. XXX alias PyLong_AS_LONG (for now)
163
162
.. c:function:: long PyLong_AsLong(PyObject *obj)
164
163
165
164
.. index ::
@@ -181,6 +180,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
181
180
.. versionchanged:: 3.10
182
181
This function will no longer use :meth:`~object.__int__`.
183
182
183
+ .. c:namespace:: NULL
184
+
185
+ .. c:function:: long PyLong_AS_LONG(PyObject *obj)
186
+
187
+ A :term: `soft deprecated ` alias.
188
+ Exactly equivalent to the preferred ``PyLong_AsLong ``. In particular,
189
+ it can fail with :exc: `OverflowError ` or another exception.
190
+
191
+ .. deprecated :: 3.14
192
+ The function is soft deprecated.
184
193
185
194
.. c :function :: int PyLong_AsInt (PyObject *obj)
186
195
You can’t perform that action at this time.
0 commit comments