[issue46838] Parameters and arguments parser syntax error improvments
Andrej Klychin
report at bugs.python.org
Fri Feb 25 19:30:09 EST 2022
Andrej Klychin <andy_kl at bk.ru> added the comment:
@terry.reedy, I based that error message on current >>> foo(**{}, *())
SyntaxError: iterable argument unpacking follows keyword argument unpacking
and >>> foo(__debug__=True)
SyntaxError: cannot assign to __debug__
but the final error message could be anything if it explicitly says "what's wrong".
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46838>
_______________________________________
More information about the Python-bugs-list
mailing list