summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/external/py_version_hex.py
blob: 3b19d0d02d68e0f9c926c4499861ef478f880763 (plain)
1
2
3
4
from cython.cimports.cpython.version import PY_VERSION_HEX

# Python version >= 3.2 final ?
print(PY_VERSION_HEX >= 0x030200F0)