MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / python_version

Function python_version

tools/python-3.11.9-amd64/Lib/platform.py:1119–1127  ·  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

1117 return _sys_version()[0]
1118
1119def python_version():
1120
1121 """ Returns the Python version as string 'major.minor.patchlevel'
1122
1123 Note that unlike the Python sys.version, the returned value
1124 will always include the patchlevel (it defaults to 0).
1125
1126 """
1127 return _sys_version()[1]
1128
1129def python_version_tuple():
1130

Callers 5

PyShellClass · 0.90
show_idlehelpFunction · 0.90
help_about.pyFile · 0.90
test_dialog_titleMethod · 0.90

Calls 1

_sys_versionFunction · 0.85

Tested by 1

test_dialog_titleMethod · 0.72