MCPcopy Index your code
hub / github.com/RustPython/RustPython / python_version

Function python_version

Lib/platform.py:1249–1257  ·  view source on GitHub ↗

Returns the Python version as string 'major.minor.patchlevel' Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).

()

Source from the content-addressed store, hash-verified

1247 return _sys_version()[0]
1248
1249def python_version():
1250
1251 """ Returns the Python version as string 'major.minor.patchlevel'
1252
1253 Note that unlike the Python sys.version, the returned value
1254 will always include the patchlevel (it defaults to 0).
1255
1256 """
1257 return _sys_version()[1]
1258
1259def python_version_tuple():
1260

Callers

nothing calls this directly

Calls 1

_sys_versionFunction · 0.85

Tested by

no test coverage detected