756
756
self.escape(anchor), self.escape(name))
758
758
if inspect.ismethod(object):
759
args, varargs, varkw, defaults = inspect.getargspec(object)
759
args = inspect.getfullargspec(object)
760
760
# exclude the argument bound to the instance, it will be
761
761
# confusing to the non-Python user
762
762
argspec = inspect.formatargspec (
767
annotations=args.annotations,
767
768
formatvalue=self.formatvalue
769
770
elif inspect.isfunction(object):
770
args, varargs, varkw, defaults = inspect.getargspec(object)
771
args = inspect.getfullargspec(object)
771
772
argspec = inspect.formatargspec(
772
args, varargs, varkw, defaults, formatvalue=self.formatvalue)
773
args.args, args.varargs, args.varkw, args.defaults,
774
annotations=args.annotations,
775
formatvalue=self.formatvalue)
774
777
argspec = '(...)'