Pablo Galindo Salgado <[email protected]> added the comment:
The problem is not the keyword, is that we are parsing correctly until the
"and" and we find the comma there. It happens with anything that invalidates
more items:
>>> from math import sin, cos, $ tan
File "<stdin>", line 1
from math import sin, cos, $ tan
^
SyntaxError: trailing comma not allowed without surrounding parentheses
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com