Exemplo n.º 1
0
def _count_arguments(function):
    """ conut the number of arguments that a function takes in
    """
    argspec = function_argspec(function)
    return len(argspec.args)
Exemplo n.º 2
0
def function_keys(function):
    """ returns the keys to a function's arguments
    """
    argspec = function_argspec(function)
    return frozenset(argspec.args)