hyperdict/hyperdict.py
def to_hd(*args):
    '''
    Creates a dict with the same name as variable name.

    >>> name = 'Carlos'
    >>> age = 12
    >>> hd.to_hd(name, age)
    HyperDict({'name': 'Carlos', 'age': 12})
    '''
    try:
        import executing
    except ImportError:
        msg = """This function needs execution python package \
                Install using \npip install execution"""
        raise ImportError(msg)
    frame = sys._getframe(1)
    node = executing.Source.executing(frame).node
    return HyperDict({__argument_name(node): arg
                     for node, arg in zip(node.args, args)})

    Creates a dict with the same name as variable name.

    >>> name = 'Carlos'
    >>> age = 12
    >>> hd.to_hd(name, age)
    HyperDict({'name': 'Carlos', 'age': 12})
    
Creates a dict with the same name as variable name.
Creates a dict with the same name as variable name .
def to_hd(*args):
    try:
        import executing
    except ImportError:
        msg = """This function needs execution python package \
                Install using \npip install execution"""
        raise ImportError(msg)
    frame = sys._getframe(1)
    node = executing.Source.executing(frame).node
    return HyperDict({__argument_name(node): arg
                     for node, arg in zip(node.args, args)})
def to_hd ( * args ) : try : import executing except ImportError : msg = """This function needs execution python package \
                Install using \npip install execution""" raise ImportError ( msg ) frame = sys . _getframe ( 1 ) node = executing . Source . executing ( frame ) . node return HyperDict ( { __argument_name ( node ) : arg for node , arg in zip ( node . args , args ) } )
Creates a dict with the same name as variable name.
Creates a dict with the same name as variable name .
'''
    Creates a dict with the same name as variable name.

    >>> name = 'Carlos'
    >>> age = 12
    >>> hd.to_hd(name, age)
    HyperDict({'name': 'Carlos', 'age': 12})
    '''