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

Function _comparable_version

tools/python-3.11.9-amd64/Lib/platform.py:141–151  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

139_component_re = re.compile(r'([0-9]+|[._+-])')
140
141def _comparable_version(version):
142 result = []
143 for v in _component_re.split(version):
144 if v not in '._+-':
145 try:
146 v = int(v, 10)
147 t = 100
148 except ValueError:
149 t = _ver_stages.get(v, 0)
150 result.extend((t, v))
151 return result
152
153### Platform specific APIs
154

Callers

nothing calls this directly

Calls 3

splitMethod · 0.45
getMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected