[New-bugs-announce] [issue42416] IDLE calltip.get_argspec: use inspect.getdoc, comment fob

Terry J. Reedy report at bugs.python.org
Fri Nov 20 00:52:42 EST 2020


New submission from Terry J. Reedy <tjreedy at udel.edu>:

Followup to PR-23393 of #1635741.  Use inspect.getdoc to get docstrings.  Restore test skipped in that PR and fix two that will fail because getdoc gets docstrings that are currently missed.

The line defining fob is only needed to get signatures for instances of classes with faulty getattr and __call__.  inspect.signature is allowed to fail for buggy objects, but this workaround makes it work anyway for CallA() and CallB() in test_buggy_getattr_class.  Add comment.

----------
assignee: terry.reedy
components: IDLE
messages: 381462
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE calltip.get_argspec: use inspect.getdoc, comment fob
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42416>
_______________________________________


More information about the New-bugs-announce mailing list