We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_Py_XNewRef
_Py_NewRef
1 parent dbb33ad commit f38c43aCopy full SHA for f38c43a
pyo3-ffi/src/object.rs
@@ -655,8 +655,10 @@ extern "C" {
655
pub fn Py_XNewRef(obj: *mut PyObject) -> *mut PyObject;
656
}
657
658
-// macro _Py_NewRef not public; reimplemented directly inside Py_NewRef here
659
-// macro _Py_XNewRef not public; reimplemented directly inside Py_XNewRef here
+// 0.22.3 backwards-compatibility exports these private FFI definitions; they will be removed
+// in 0.23.0
660
+pub use crate::compat::Py_NewRef as _Py_NewRef;
661
+pub use crate::compat::Py_XNewRef as _Py_XNewRef;
662
663
#[cfg(all(Py_3_10, any(not(Py_LIMITED_API), PyPy)))]
664
#[cfg_attr(docsrs, doc(cfg(Py_3_10)))]
0 commit comments