(environment, extensions)
return result
Load the extensions from the list and bind it to the environment.
    Returns a dict of instantiated environments.
Load the extensions from the list and bind it to the environment.
    Returns a dict of instantiated environments.
Load the extensions from the list and bind it to the environment . Returns a dict of instantiated environments .
def load_extensions(environment, extensions):
    """Load the extensions from the list and bind it to the environment.
    Returns a dict of instantiated environments.
    """
    result = {}
    for extension in extensions:
        if isinstance(extension, string_types):
            extension = import_string(extension)
        result[extension.identifier] = extension(environment)
    return result
def load_extensions ( environment , extensions ) : result = { } for extension in extensions : if isinstance ( extension , string_types ) : extension = import_string ( extension ) result [ extension . identifier ] = extension ( environment ) return result