2 ms·
Thanks for your answer! However, I think this might be a bit misleading for people who do not know Cython: > the Cython language, which is a Python-ish progra
by HerrMonnezza 8y ago
Thanks for your answer!
However, I think this might be a bit misleading for people who do not know Cython:
> the Cython language, which is a Python-ish programming language, but not Python.
Actually, http://cython.org/ http://cython.org/ states:
"""
The Cython language is a superset of the Python language that additionally supports calling C functions and declaring C types on variables and class attributes.
"""
In my experience with Cython, this description is quite accurate: code can be annotated with C types and then compiled to efficient C code by Cython; if you don't use annotations, then you can still compile to C code but with less speed advantage.
I haven't used Cython since version 0.17 (quite old now) but IIRC the major drawback was that it was mainly targeting writing extension modules for Python; it could generate self-standing executables, but would still require a Python interpreter to be embedded in any compiled code (that was the price for seamless interoperability between Cython/compiled code and "pure Python" code).