Skip to content

Commit bbceb9f

Browse files
exgdavidhewitt
authored andcommitted
Restore _PyLong_NumBits on Python 3.13 and later (#4450)
See python/cpython@cc663b7
1 parent cd5369c commit bbceb9f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

newsfragments/4450.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore `_PyLong_NumBits` on Python 3.13 and later

pyo3-ffi/src/longobject.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ extern "C" {
9292
#[cfg(not(Py_LIMITED_API))]
9393
extern "C" {
9494
#[cfg_attr(PyPy, link_name = "_PyPyLong_NumBits")]
95-
#[cfg(not(Py_3_13))]
9695
pub fn _PyLong_NumBits(obj: *mut PyObject) -> size_t;
9796
}
9897

0 commit comments

Comments
 (0)