Guido van Rossum <[email protected]> added the comment:
I like the lookahead. We could also make the comma and the message mandatory
when inside parentheses:
| 'assert' '(' a=expression ',' b=expression [','] ')' &(NEWLINE | ';')
| 'assert' a=expression b=[',' z=expression { z }]
(And probably add an "invalid" rule to cover tuples with 0, 1, 3 or more
elements.)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com