parameters: (release='',versioninfo=('','',''),machine='')
return_statement: return release,versioninfo,machine
docstring: 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 paramter values
          which default to ''. All tuple entries are strings.
docstring_summary: Get MacOS version information and return it as tuple (release,
          versioninfo, machine) with versioninfo being a tuple (version,
          dev_stage, non_release_version).
docstring_tokens: Get MacOS version information and return it as tuple ( release versioninfo machine ) with versioninfo being a tuple ( version dev_stage non_release_version ) .
function: 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 paramter 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 doesn't work for some reason fall back to reading the
      # information using gestalt calls.
      info = _mac_ver_gestalt()
      if info is not None:
          return info
  
      # If that also doesn't work return the default values
      return release,versioninfo,machine
function_tokens: 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 doesn't work for some reason fall back to reading the # information using gestalt calls. info = _mac_ver_gestalt ( ) if info is not None : return info # If that also doesn't work return the default values return release , versioninfo , machine