Stefan Behnel <sco...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue4242> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com