[issue4242] Classify language vs. impl-detail tests, step 1
Stefan Behnel
report at bugs.python.org
Tue Jan 20 20:49:13 CET 2009
Stefan Behnel <scoder at users.sourceforge.net> added the comment:
I would definitely appreciate having a well-defined set of "required
tests" that Cython should pass for compliance.
However, something like sys.vm won't easily work for Cython: it runs
within the CPython VM but only after converting the Python code to C.
Emulating platform.python_implementation() to make it return "Cython"
does not sound correct.
You can currently detect Cython compilation by doing this:
import cython
print cython.compiled
Obviously, the import will fail when running as Python code without
having Cython installed.
However, in Cython, you would often get a compile time error in cases
where implementation details apply, so checking for implementation
details programmatically may not work at all.
----------
nosy: +scoder
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4242>
_______________________________________
More information about the Python-bugs-list
mailing list