[issue17373] Add inspect.Signature.from_callable()

Yury Selivanov report at bugs.python.org
Sun Jan 12 18:41:55 CET 2014


Yury Selivanov added the comment:

> The difference is that inspect.signature is not friendly to Signature
> subclasses.  Without from_callable you can't customize the behavior in
> inspect.signature easily.

OK, suppose you have "Signature.from_callable".  You then create a subclass
MySignature, and override it. How can you customize 'inspect.signature' to 
use the MySignature class?

----------

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


More information about the Python-bugs-list mailing list