diff --git a/newsfragments/4450.changed.md b/newsfragments/4450.changed.md new file mode 100644 index 00000000000..efc02fc3032 --- /dev/null +++ b/newsfragments/4450.changed.md @@ -0,0 +1 @@ +Restore `_PyLong_NumBits` on Python 3.13 and later diff --git a/pyo3-ffi/src/longobject.rs b/pyo3-ffi/src/longobject.rs index 35a2bc1b0ff..25fa12dbbfc 100644 --- a/pyo3-ffi/src/longobject.rs +++ b/pyo3-ffi/src/longobject.rs @@ -92,7 +92,6 @@ extern "C" { #[cfg(not(Py_LIMITED_API))] extern "C" { #[cfg_attr(PyPy, link_name = "_PyPyLong_NumBits")] - #[cfg(not(Py_3_13))] pub fn _PyLong_NumBits(obj: *mut PyObject) -> size_t; }