blob: 62d4c76ac8aff6872a82d23730567172a505d546 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# mymodule.py
import cython
# override with Python import if not in compiled code
if not cython.compiled:
from math import sin
# calls sin() from math.h when compiled with Cython and math.sin() in Python
print(sin(0))
|