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 ncoghlan, rhettinger, serhiy.storchaka, yselivanov
Date 2017-04-23.20:18:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import functools, inspect
>>> class A:
...     f = functools.partialmethod((lambda self, x, y, *args: ...), 1)
>>> inspect.signature(A.f)
<Signature (self, y, *args)>
>>> class A:
...     f = functools.partialmethod((lambda *args: ...), 1)
>>> inspect.signature(A.f)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/serhiy/py/cpython/Lib/", line 3007, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
  File "/home/serhiy/py/cpython/Lib/", line 2757, in from_callable
  File "/home/serhiy/py/cpython/Lib/", line 2227, in _signature_from_callable
    return sig.replace(parameters=new_params)
  File "/home/serhiy/py/cpython/Lib/", line 2780, in replace
  File "/home/serhiy/py/cpython/Lib/", line 2725, in __init__
    raise ValueError(msg)
ValueError: duplicate parameter name: 'args'
Date User Action Args
2017-04-23 20:18:25serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan, yselivanov
2017-04-23 20:18:25serhiy.storchakasetmessageid: <>
2017-04-23 20:18:25serhiy.storchakalinkissue30149 messages
2017-04-23 20:18:25serhiy.storchakacreate