Message209469
| 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. |
|