Which Python implementation am I using?

Ned Batchelder ned at nedbatchelder.com
Fri Aug 7 14:16:12 EDT 2015


On Friday, August 7, 2015 at 1:27:17 PM UTC-4, Steven D'Aprano wrote:
> Is this the best way to detect Jython and IronPython when
> python_implementation isn't available?
> 
> How about PyPy, Stackless, or others?
> 

I've been told that the canonical test for PyPy is:

    '__pypy__' in sys.builtin_module_names

This is the test that coverage.py uses.

--Ned.



More information about the Python-list mailing list