Stefan Krah added the comment: Another issue is that with the patch applied help() is broken for certain forms of docstrings:
from decimal import * >>> print(setcontext.__doc__) setcontext(c) - Set a new default context. >>> help(setcontext) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/stefan/hg/cpython/Lib/_sitebuiltins.py", line 99, in __call__ return pydoc.help(*args, **kwds) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1792, in __call__ self.help(request) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1842, in help else: doc(request, 'Help on %s:', output=self._output) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1578, in doc pager(render_doc(thing, title, forceload)) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1571, in render_doc return title % desc + '\n\n' + renderer.document(object, name) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 358, in document if inspect.isroutine(object): return self.docroutine(*args) File "/home/stefan/hg/cpython/Lib/pydoc.py", line 1323, in docroutine signature = inspect.signature(object) File "/home/stefan/hg/cpython/Lib/inspect.py", line 1551, in signature raise ValueError(msg) ValueError: no signature found for builtin function <built-in function setcontext> Perhaps this form of docstrings is discouraged (I used it because it looks nice in pydoc), but nevertheless it might be present in third party modules. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20189> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com