

def __init__(self, f):
    self.name = f.__name__
    (args, vararg_name, kw_wildcard_name, defaults) = inspect.getargspec(f)
    self.arguments = args
    self.vararg_name = vararg_name
    self.kw_wildcard_name = kw_wildcard_name
    defaults = (defaults or [])
    self.positional_args = args[:(len(args) - len(defaults))]
    self.kwargs = OrderedDict(zip(args[(- len(defaults)):], defaults))

dataset/ETHPy150Open IDSIA/sacred/sacred/config/signature.py Signature.__init__/original