[issue20189] inspect.Signature doesn't recognize all builtin types

Yury Selivanov report at bugs.python.org
Mon Jan 13 23:08:20 CET 2014


Yury Selivanov added the comment:

> But this complicates life for inspect.Signature, which needs to not publish the "self" parameter when it's been bound.

That's already supported, isn't it?

>>> str(inspect.signature(F.a))
'(self, a)'
>>> str(inspect.signature(F().a))
'(a)'

----------

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


More information about the Python-bugs-list mailing list