Expand description
C API Compatibility Shims
Some CPython C API functions added in recent versions of Python are inherently safer to use than older C API constructs. This module exposes functions available on all Python versions that wrap the old C API on old Python versions and wrap the function directly on newer Python versions.
Re-exportsยง
pub use $crate::Py_NewRef;pub use $crate::Py_XNewRef;pub use $crate::PyModule_AddObjectRef;pub use $crate::PyDict_GetItemRef;pub use $crate::PyList_GetItemRef;pub use $crate::PyImport_AddModuleRef;pub use $crate::PyWeakref_GetRef;pub use $crate::PyList_Extend;pub use $crate::PyList_Clear;pub use $crate::PyModule_Add;pub use $crate::Py_HashBuffer;pub use $crate::PyObject_CallNoArgs;pub use $crate::PyObject_CallMethodNoArgs;