[New-bugs-announce] [issue20313] inspect.signature should raise ValueError for builtins with no signature info
Yury Selivanov
report at bugs.python.org
Mon Jan 20 17:56:33 CET 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue20313>
_______________________________________
More information about the New-bugs-announce
mailing list