This is documentation for an old release of SciPy (version 1.8.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.LowLevelCallable.from_cython#

classmethod LowLevelCallable.from_cython(module, name, user_data=None, signature=None)[source]#

Create a low-level callback function from an exported Cython function.

Parameters
modulemodule

Cython module where the exported function resides

namestr

Name of the exported function

user_data{PyCapsule, ctypes void pointer, cffi void pointer}, optional

User data to pass on to the callback function.

signaturestr, optional

Signature of the function. If omitted, determined from function.