(tname, args)
return constructor(*args)
Reconstruct a tuple subclass (inverse of deconstruct).

    Parameters
    ----------
    tname : str
        Type name
    args : Tuple[Any, ...]

    Returns
    -------
    rval: Tuple[Any, ...]
Reconstruct a tuple subclass (inverse of deconstruct).
Reconstruct a tuple subclass ( inverse of deconstruct ) .
def reconstruct(tname, args):
    # type: (str, Tuple[Any, ...]) -> Tuple[Any, ...]
    """
    Reconstruct a tuple subclass (inverse of deconstruct).

    Parameters
    ----------
    tname : str
        Type name
    args : Tuple[Any, ...]

    Returns
    -------
    rval: Tuple[Any, ...]
    """
    try:
        constructor = globals()[tname]
    except KeyError:
        raise NameError(tname)
    return constructor(*args)
def reconstruct ( tname , args ) : # type: (str, Tuple[Any, ...]) -> Tuple[Any, ...] try : constructor = globals ( ) [ tname ] except KeyError : raise NameError ( tname ) return constructor ( * args )