Visibility & API: Who Can Call What?

`def` and `cpdef` functions are callable directly from Python code, making them suitable for public APIs. In contrast, `cdef` functions are strictly C-level and can only be called from other Cython or C code within the same module, optimizing for internal performance.

Sources

Open the full topic