O'Reilly logo

Learning Cython Programming by Philip Herron

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Further Reading

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.

Keyword cpdef

Currently, we have seen two different function declarations in Cython, def and cdef, to define functions. There is one more declaration: cpdef. 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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required