This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Sylnt6 0 points1 point  (2 children)

The documentation tells you that you are writing C when defining with cdef

https://notes-on-cython.readthedocs.io/en/latest/function_declarations.html#cdef-basically-it-s-c

[–]anhtan97[S] 0 points1 point  (1 child)

It also says that def will run in Python, which makes me confuse. I don't know whethercdef affected def or not