homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients brett.cannon, larry, meador.inge, skrah, tim.peters, yselivanov
Date 2014年01月13日.22:28:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20140113222846.GA12670@sleipnir.bytereef.org>
In-reply-to <1389651468.72.0.777759957964.issue20189@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2014年01月13日 22:28:47skrahsetrecipients: + skrah, tim.peters, brett.cannon, larry, meador.inge, yselivanov
2014年01月13日 22:28:47skrahlinkissue20189 messages
2014年01月13日 22:28:47skrahcreate

AltStyle によって変換されたページ (->オリジナル) /