1 # Python version constants
3 # It's better to evaluate these at runtime (i.e. C compile time) using
5 # if PY_MAJOR_VERSION >= 3:
6 # do_stuff_in_Py3_0_and_later()
7 # if PY_VERSION_HEX >= 0x02050000:
8 # do_stuff_in_Py2_5_and_later()
10 # than using the IF/DEF statements, which are evaluated at Cython
11 # compile time. This will keep your C code portable.
15 # the complete version, e.g. 0x010502B2 == 1.5.2b2
18 # the individual sections as plain numbers
25 # Note: PY_RELEASE_LEVEL is one of
28 # 0xC (release candidate)
32 char PY_PATCHLEVEL_REVISION[]