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

Function _comparable_version

Lib/platform.py:142–153  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

compileMethod · 0.45
splitMethod · 0.45
getMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…