In a
.pyx
file if you want a function that you declared as cdef
(e.g. because you want inlining) to be visible to the Python interpreter, you need to use cpdef
instead. However, it seems the cpdef
version is a lot less efficient than cdef
, and it might be better to have a wrapper of some sort instead.
Comments
Post a Comment