[issue20161] inspect.signature fails on some functions which use Argument Clinic
Serhiy Storchaka
report at bugs.python.org
Tue Jan 7 10:38:39 CET 2014
New submission from Serhiy Storchaka:
inspect.signature fails on some functions which use Argument Clinic. For example after applying issue20133 or issue20151 it fails for audioop.ratecv and binascii.a2b_qp.
>>> inspect.signature(audioop.ratecv)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/serhiy/py/cpython/Lib/inspect.py", line 1468, in signature
return Signature.from_builtin(obj)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 1989, in from_builtin
p(name, default)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 1982, in p
default = default.n
AttributeError: type object '_empty' has no attribute 'n'
----------
messages: 207521
nosy: larry, serhiy.storchaka
priority: release blocker
severity: normal
status: open
title: inspect.signature fails on some functions which use Argument Clinic
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20161>
_______________________________________
More information about the Python-bugs-list
mailing list