pyo3-ffi 0.30.1

Python-API bindings for the PyO3 ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::PyObject;
#[cfg(not(RustPython))]
use crate::PyTypeObject;

extern_libpython! {
    #[cfg_attr(all(PyPy, not(Py_3_12)), link_name = "PyPy_GenericAlias")]
    pub fn Py_GenericAlias(origin: *mut PyObject, args: *mut PyObject) -> *mut PyObject;

    #[cfg(not(RustPython))]
    #[cfg_attr(all(PyPy, not(Py_3_12)), link_name = "PyPy_GenericAliasType")]
    pub static mut Py_GenericAliasType: PyTypeObject;
}