Author yselivanov
Recipients Claudiu.Popa, Yury.Selivanov, larry, michael.foord, ncoghlan, terry.reedy, yselivanov
Date 2014-01-27.19:34:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390851269.06.0.0394834470813.issue17481@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-01-27 19:34:29yselivanovsetrecipients: + yselivanov, terry.reedy, ncoghlan, larry, michael.foord, Claudiu.Popa, Yury.Selivanov
2014-01-27 19:34:29yselivanovsetmessageid: <1390851269.06.0.0394834470813.issue17481@psf.upfronthosting.co.za>
2014-01-27 19:34:29yselivanovlinkissue17481 messages
2014-01-27 19:34:28yselivanovcreate