Python has a few different implementations: CPython, Jython, PyPy, etc. I want to programmatically determine which implementation my code is running on. How can I do that?
In [50]: import platform In [52]: platform.python_implementation() Out[52]: 'CPython'
How about platform
it gives you
platform.python_implementation()