File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
139
139
.. versionadded:: 3.13
140
140
141
141
142
- .. XXX alias PyLong_AS_LONG (for now)
143
142
.. c:function:: long PyLong_AsLong(PyObject *obj)
144
143
145
144
.. index ::
@@ -161,6 +160,16 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
161
160
.. versionchanged:: 3.10
162
161
This function will no longer use :meth:`~object.__int__`.
163
162
163
+ .. c:namespace:: NULL
164
+
165
+ .. c:function:: long PyLong_AS_LONG(PyObject *obj)
166
+
167
+ A :term: `soft deprecated ` alias.
168
+ Exactly equivalent to the preferred ``PyLong_AsLong ``. In particular,
169
+ it can fail with :exc: `OverflowError ` or another exception.
170
+
171
+ .. deprecated :: 3.14
172
+ The function is soft deprecated.
164
173
165
174
.. c :function :: int PyLong_AsInt (PyObject *obj)
166
175
You can’t perform that action at this time.
0 commit comments