[issue24298] inspect.signature includes bound argument for wrappers around bound methods

Yury Selivanov report at bugs.python.org
Thu May 28 03:37:44 CEST 2015


Yury Selivanov added the comment:

> I'm OK with the patch as is, but I'm definitely concerned about the maintainability of inspect.signature in general.

I agree, _signature_from_callable is getting quite complex.  The good news is that we have a very good test coverage for signatures.

As for a big block comment -- it might be useful.  OTOH the code of _signature_from_callable is mostly if..else statements with calls to helpers and recursion.

----------

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


More information about the Python-bugs-list mailing list