def get_default_compiler(osname=None, platform=None):
 if (osname is None):
  osname = os.name
 if (platform is None):
  platform = sys.platform
 for (pattern, compiler) in _default_compilers:
  if ((re.match(pattern, platform) is not None) or (re.match(pattern, osname) is not None)):
   return compiler
 return 'unix'

def get_default_compiler ( osname = None , platform = None ) : if ( osname is None ) : osname = os . name if ( platform is None ) : platform = sys . platform for ( pattern , compiler ) in _default_compilers : if ( ( re . match ( pattern , platform ) is not None ) or ( re . match ( pattern , osname ) is not None ) ) : return compiler return 'unix'
determine the default compiler to use for the given platform .