MCPcopy Create free account
hub / github.com/datastax/astrapy / get_python_version

Function get_python_version

astrapy/utils/python_version.py:21–29  ·  view source on GitHub ↗

Get the version of the currently-running Python interpreter. Returns: version: (major, minor, revision) as a tuple[int, int, int]

()

Source from the content-addressed store, hash-verified

19
20
21def get_python_version() -> tuple[int, int, int]:
22 """
23 Get the version of the currently-running Python interpreter.
24
25 Returns:
26 version: (major, minor, revision) as a tuple[int, int, int]
27 """
28
29 return cast(tuple[int, int, int], tuple(sys.version_info[:3]))

Callers 1

api_commander.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…