New submission from Yury Selivanov: 'inspect.signature' currently returns 'None' for builtins with no signature information. However, the protocol is that it raises a "ValueError(callable is not supported by signature)" if object is callable, but a signature can not be provided.
Attached patch fixes this, as well as updates the relevant section in the inspect.signature documentation. ---------- components: Library (Lib) files: sig_builtin_01.patch keywords: patch messages: 208548 nosy: brett.cannon, larry, ncoghlan, yselivanov priority: normal severity: normal status: open title: inspect.signature should raise ValueError for builtins with no signature info versions: Python 3.4 Added file: http://bugs.python.org/file33566/sig_builtin_01.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20313> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com