[issue19903] Idle: Use inspect.signature for calltips

Louie Lu report at bugs.python.org
Fri May 5 03:33:38 EDT 2017


Louie Lu added the comment:

And, another case, the __text_signature__ and i.signature() is similar, but not the same:

>>> range.__init__.__text_signature__
'($self, /, *args, **kwargs)'
  ^
>>> str(i.signature(range.__init__))
'(self, /, *args, **kwargs)'

So we can't simply compare-and-eliminate this case.

----------

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


More information about the Python-bugs-list mailing list