New submission from Terry J. Reedy <tjre...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42416> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com