(osname=None, platform=None)
return 'unix'
Determine the default compiler to use for the given platform.

       osname should be one of the standard Python OS names (i.e. the
       ones returned by os.name) and platform the common value
       returned by sys.platform for the platform in question.

       The default values are os.name and sys.platform in case the
       parameters are not given.
Determine the default compiler to use for the given platform.
Determine the default compiler to use for the given platform .
def get_default_compiler(osname=None, platform=None):
    """Determine the default compiler to use for the given platform.

       osname should be one of the standard Python OS names (i.e. the
       ones returned by os.name) and platform the common value
       returned by sys.platform for the platform in question.

       The default values are os.name and sys.platform in case the
       parameters are not given.
    """
    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
    # Default to Unix 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 # Default to Unix compiler return 'unix'