(release='', versioninfo=('', '', ''), machine='')
return release, versioninfo, machine
Get macOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).

        Entries which cannot be determined are set to the parameter values
        which default to ''. All tuple entries are strings.
Get macOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).
Get macOS version information and return it as tuple ( release versioninfo machine ) with versioninfo being a tuple ( version dev_stage non_release_version ) .
def mac_ver(release='', versioninfo=('', '', ''), machine=''):

    """ Get macOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).

        Entries which cannot be determined are set to the parameter values
        which default to ''. All tuple entries are strings.
    """

    # First try reading the information from an XML file which should
    # always be present
    info = _mac_ver_xml()
    if info is not None:
        return info

    # If that also doesn't work return the default values
    return release, versioninfo, machine
def mac_ver ( release = '' , versioninfo = ( '' , '' , '' ) , machine = '' ) : # First try reading the information from an XML file which should # always be present info = _mac_ver_xml ( ) if info is not None : return info # If that also doesn't work return the default values return release , versioninfo , machine