Module astrapy.utils.python_version
Functions
def get_python_version() ‑> tuple[int, int, int]-
Expand source code
def get_python_version() -> tuple[int, int, int]: """ Get the version of the currently-running Python interpreter. Returns: version: (major, minor, revision) as a tuple[int, int, int] """ return cast(tuple[int, int, int], tuple(sys.version_info[:3]))Get the version of the currently-running Python interpreter.
Returns
version- (major, minor, revision) as a tuple[int, int, int]