[New-bugs-announce] [issue17071] Signature.bind() fails with a keyword argument named "self"
Antoine Pitrou
report at bugs.python.org
Tue Jan 29 14:10:10 CET 2013
New submission from Antoine Pitrou:
>>> def f(a, self): pass
...
>>> sig = inspect.signature(f)
>>> sig.bind(1, 2)
<inspect.BoundArguments object at 0x7f607ead1e28>
>>> sig.bind(a=1, self=2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: bind() got multiple values for argument 'self'
----------
components: Library (Lib)
messages: 180906
nosy: larry, pitrou, yselivanov
priority: normal
severity: normal
status: open
title: Signature.bind() fails with a keyword argument named "self"
type: behavior
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17071>
_______________________________________
More information about the New-bugs-announce
mailing list