[issue20438] inspect: Deprecate getfullargspec?

Vedran Čačić report at bugs.python.org
Thu Nov 19 04:49:18 EST 2015


Vedran Čačić added the comment:

> Also, it is worth noting, that Signature API does not provide 100%
of functionality that deprecated APIs have.  It is important to do
a soft deprecation of outdated APIs in 3.5 to gather users feedback,
and improve Signature object.

Well, here is a feedback about lost functionality. inspect.getcallargs had a very nice property that it automatically bound the first argument to the instance of bound methods. It seems I have no general way to do it with Signature.bind. Of course I can put

    arguments['self'] = method.__self__

afterwards, but theoretically, the argument doesn't have to be called 'self'. And anyway, I would like something that works seamlessly with bound methods and ordinary functions.

----------
nosy: +Vedran.Čačić

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20438>
_______________________________________


More information about the Python-bugs-list mailing list