`cpdef`'s Dual Nature: Bridging Python and C Calls

`cpdef` functions generate two versions: a fast C-callable function for internal Cython/C calls and a Python-callable wrapper, enabling seamless invocation from both native C and Python codebases.

Sources

Open the full topic