Skip to content

Commit

Permalink
revert removal of _Py_XNewRef and _Py_NewRef in 0.22 line
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Sep 15, 2024
1 parent dbb33ad commit f38c43a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyo3-ffi/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,10 @@ extern "C" {
pub fn Py_XNewRef(obj: *mut PyObject) -> *mut PyObject;
}

// macro _Py_NewRef not public; reimplemented directly inside Py_NewRef here
// 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
pub use crate::compat::Py_NewRef as _Py_NewRef;
pub use crate::compat::Py_XNewRef as _Py_XNewRef;

#[cfg(all(Py_3_10, any(not(Py_LIMITED_API), PyPy)))]
#[cfg_attr(docsrs, doc(cfg(Py_3_10)))]
Expand Down

0 comments on commit f38c43a

Please sign in to comment.