[issue17481] inspect.getfullargspec should use __signature__
Yury Selivanov
report at bugs.python.org
Mon Jan 27 20:34:29 CET 2014
Yury Selivanov added the comment:
> 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.
Larry, yes, that's correct. The attached patch simulates this behaviour, with:
if ismethod(func):
func = func.__func__
I'm attaching 'getargsspec_03.patch', as the previous one (02) was a bit crippled.
----------
Added file: http://bugs.python.org/file33755/getargsspec_03.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17481>
_______________________________________
More information about the Python-bugs-list
mailing list