So far in this book, we have looked into both the basic and advanced topics of using Cython. But it does not stop here; there are further topics that you can explore. Consider other implementations of Python such as PyPy or making it work with Python 3. Other topics we will discuss in this chapter are OpenMP support and type casting and object initialization in Cython.
Currently, we have seen two different function declarations in Cython,
cdef, to define functions. There is one more declaration:
def is a Python-only function, so it is only callable from Python or Cython code blocks; calling from C does not work.
cdef is the opposite; this means that it's callable from C and not from Python. ...