[issue17159] Remove explicit type check from inspect.Signature.from_function()
Stefan Behnel
report at bugs.python.org
Fri Feb 8 17:02:55 CET 2013
Stefan Behnel added the comment:
The method doesn't seem to be documented, and I'm not sure if the docstring really benefits from this lengthy addition. Anyway, here's a patch that includes the docstring update.
The exception could be kept the same if we catch an AttributeError and explicitly raise a TypeError instead.
----------
Added file: http://bugs.python.org/file29004/inspect_sig_with_docstring.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17159>
_______________________________________
More information about the Python-bugs-list
mailing list