Andrew Straw wrote: > Hi, looking at the Cython Sphinx documentation, I don't see the Python > version as a variable I can use for conditional compilation. This would > be handy in the case of newly added features in the Python-C API, for > example. Would this be feasible to add (alongside UNAME_SYSNAME and > friends)?
Feasible, yes, but it doesn't make much sense to check the Python version at Cython compile time. The C code that gets generated by Cython will run on all Python versions from 2.3 to 3.0, and on all major platforms. You will loose that if you start generating platform-specific C code for the system that happens to run Cython on your code. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
