[issue46637] Incorrect error message: "missing 1 required positional argument"
Eric V. Smith
report at bugs.python.org
Fri Feb 4 12:05:31 EST 2022
Eric V. Smith <eric at trueblade.com> added the comment:
Given this current behavior:
>>> def foo(a, /, b): pass
...
>>> foo()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() missing 2 required positional arguments: 'a' and 'b'
What would you suggest?
I agree the current messages aren't perfect.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46637>
_______________________________________
More information about the Python-bugs-list
mailing list