pyo3::ffi::compat

Function Py_NewRef

Source
pub unsafe fn Py_NewRef(obj: *mut PyObject) -> *mut PyObject
Available on docsrs or non-Py_3_10 only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here