Exemplo n.º 1
0
def instantiate(name, *args, **kwargs):
    """Instantiate class by name.

    See :func:`symbol_by_name`.

    """
    return symbol_by_name(name)(*args, **kwargs)
Exemplo n.º 2
0
def get_implementation(cls):
    return symbol_by_name(cls, ALIASES)