Jump to Content

Cython: The Best of Both Worlds

Stefan Behnel
Craig Citro
Lisandro Dalcin
Dag Sverre Seljebotn
Kurt Smith
Computing in Science and Engineering, vol. 13.2 (2011), pp. 31-39


Cython is an extension to the Python language that allows explicit type declarations and is compiled directly to C. This addresses Python's large overhead for numerical loops and the difficulty of efficiently making use of existing C and Fortran code, which Cython code can interact with natively. The Cython language combines the speed of C with the power and simplicity of the Python language.

Research Areas