This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients Carl.Friedrich.Bolz, arigo, benjamin.peterson, brett.cannon, ncoghlan, pitrou, scoder
Date 2009-01-20.19:49:11
SpamBayes Score 4.9960036e-16
Marked as misclassified No
Message-id <1232480953.04.0.652817975191.issue4242@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-20 19:49:13scodersetrecipients: + scoder, brett.cannon, arigo, ncoghlan, pitrou, Carl.Friedrich.Bolz, benjamin.peterson
2009-01-20 19:49:13scodersetmessageid: <1232480953.04.0.652817975191.issue4242@psf.upfronthosting.co.za>
2009-01-20 19:49:12scoderlinkissue4242 messages
2009-01-20 19:49:11scodercreate