Lines Matching full:defaults
801 ArgSpec = namedtuple('ArgSpec', 'args varargs keywords defaults')
806 A tuple of four things is returned: (args, varargs, varkw, defaults).
809 'defaults' is an n-tuple of the default values of the last n arguments.
844 def formatargspec(args, varargs=None, varkw=None, defaults=None,
852 The first four arguments are (args, varargs, varkw, defaults). The
857 if defaults:
858 firstdefault = len(args) - len(defaults)
861 if defaults and i >= firstdefault:
862 spec = spec + formatvalue(defaults[i - firstdefault])
900 args, varargs, varkw, defaults = getargspec(func)
935 num_defaults = len(defaults) if defaults else 0
945 f_name, 'at most' if defaults else 'exactly', num_args,
963 if defaults: # fill in any missing values with the defaults
964 for arg, value in zip(args[-num_defaults:], defaults):
979 f_name, 'at least' if defaults else 'exactly', num_required,