MCPcopy Create free account
hub / github.com/celery/celery / pyimplementation

Function pyimplementation

celery/platforms.py:115–127  ·  view source on GitHub ↗

Return string identifying the current Python implementation.

()

Source from the content-addressed store, hash-verified

113
114
115def pyimplementation():
116 """Return string identifying the current Python implementation."""
117 if hasattr(_platform, 'python_implementation'):
118 return _platform.python_implementation()
119 elif sys.platform.startswith('java'):
120 return 'Jython ' + sys.platform
121 elif hasattr(sys, 'pypy_version_info'):
122 v = '.'.join(str(p) for p in sys.pypy_version_info[:3])
123 if sys.pypy_version_info[3:]:
124 v += '-' + ''.join(str(p) for p in sys.pypy_version_info[3:])
125 return 'PyPy ' + v
126 else:
127 return 'CPython'
128
129
130class 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