Skip to main content

Module compat

Module compat 

Source
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.

Structs§

PyBytesWriter

Functions§

PyBytesWriter_Create
PyBytesWriter_Discard
PyBytesWriter_Finish
PyBytesWriter_FinishWithSize
PyBytesWriter_GetData
PyBytesWriter_GetSize
PyBytesWriter_Resize
PyDict_GetItemRef
PyImport_AddModuleRef
PyIter_NextItem
PyList_Clear
PyList_Extend
PyList_GetItemRef
PyModule_Add
PyModule_AddObjectRef
PyObject_CallMethodNoArgs
PyObject_CallNoArgs
PyThreadState_GetUnchecked
PyWeakref_GetRef
Py_HashBuffer
Py_NewRef
Py_XNewRef