MCPcopy Create free account
hub / github.com/apache/arrow / version_tuple

Function version_tuple

dev/merge_arrow_pr.py:200–203  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

198 all_versions = [getattr(v, "name", v) for v in mainline_versions]
199
200 def version_tuple(x):
201 # Parquet versions are something like cpp-1.2.0
202 numeric_version = getattr(x, "name", x).split("-", 1)[-1]
203 return tuple(int(_) for _ in numeric_version.split("."))
204 all_versions = sorted(all_versions, key=version_tuple, reverse=True)
205
206 # Only suggest versions starting with a number, like 0.x but not JS-0.x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected