MCPcopy
hub / github.com/celery/celery / pyimplementation

Function pyimplementation

celery/platforms.py:106–118  ·  view source on GitHub ↗

Return string identifying the current Python implementation.

()

Source from the content-addressed store, hash-verified

104
105
106def pyimplementation():
107 """Return string identifying the current Python implementation."""
108 if hasattr(_platform, 'python_implementation'):
109 return _platform.python_implementation()
110 elif sys.platform.startswith('java'):
111 return 'Jython ' + sys.platform
112 elif hasattr(sys, 'pypy_version_info'):
113 v = '.'.join(str(p) for p in sys.pypy_version_info[:3])
114 if sys.pypy_version_info[3:]:
115 v += '-' + ''.join(str(p) for p in sys.pypy_version_info[3:])
116 return 'PyPy ' + v
117 else:
118 return 'CPython'
119
120
121class LockFailed(Exception):

Callers 5

test_platform_jythonMethod · 0.90
test_platform_pypyMethod · 0.90
bugreportFunction · 0.90

Calls 1

joinMethod · 0.45

Tested by 4

test_platform_jythonMethod · 0.72
test_platform_pypyMethod · 0.72