Guido van Rossum <gu...@python.org> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46167>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to