blob: 83f5cdc288371ff02d2a8ce4973e86e13ba0d476 (
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))
|