MCPcopy Index your code
hub / github.com/python/cpython / python_implementation

Function python_implementation

Lib/platform.py:1180–1190  ·  view source on GitHub ↗

Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'Jython' (Java implementation of Python), 'PyPy' (Python implementation of Python).

()

Source from the content-addressed store, hash-verified

1178 return result
1179
1180def python_implementation():
1181
1182 """ Returns a string identifying the Python implementation.
1183
1184 Currently, the following implementations are identified:
1185 'CPython' (C implementation of Python),
1186 'Jython' (Java implementation of Python),
1187 'PyPy' (Python implementation of Python).
1188
1189 """
1190 return _sys_version()[0]
1191
1192def python_version():
1193

Callers 3

simple_server.pyFile · 0.90
check_helloMethod · 0.90
test_bytes_validationMethod · 0.90

Calls 1

_sys_versionFunction · 0.85

Tested by 2

check_helloMethod · 0.72
test_bytes_validationMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…