This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients Claudiu.Popa, Yury.Selivanov, larry, michael.foord, ncoghlan, terry.reedy, yselivanov
Date 2014-01-25.03:56:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There's a major difference between getfullargspec/getargspec and inspect.signature: getfullargspec shows you the "self" parameter for bound methods, and inspect.signature does not.

>>> class C:
...    def foo(self, a):  pass
>>> c = C()
>>> import inspect
>>> str(inspect.signature(
>>> inspect.getfullargspec(
FullArgSpec(args=['self', 'a'], varargs=None, varkw=None, defaults=None, kwonlyargs=[], kwonlydefaults=None, annotations={})
>>> inspect.getargspec(
ArgSpec(args=['self', 'a'], varargs=None, keywords=None, defaults=None)

This is why help() (currently) shows bound parameters for methods implemented in Python, but doesn't show them for methods implemented in C.  pydoc uses inspect.getfullargspec for pure Python functions and inspect.signature for builtins.
Date User Action Args
2014-01-25 03:56:06larrysetrecipients: + larry, terry.reedy, ncoghlan, michael.foord, Claudiu.Popa, Yury.Selivanov, yselivanov
2014-01-25 03:56:06larrysetmessageid: <>
2014-01-25 03:56:05larrylinkissue17481 messages
2014-01-25 03:56:05larrycreate