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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2014-01-07.09:38:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/", line 1468, in signature
    return Signature.from_builtin(obj)
  File "/home/serhiy/py/cpython/Lib/", line 1989, in from_builtin
    p(name, default)
  File "/home/serhiy/py/cpython/Lib/", line 1982, in p
    default = default.n
AttributeError: type object '_empty' has no attribute 'n'
Date User Action Args
2014-01-07 09:38:39serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2014-01-07 09:38:39serhiy.storchakasetmessageid: <>
2014-01-07 09:38:39serhiy.storchakalinkissue20161 messages
2014-01-07 09:38:39serhiy.storchakacreate