This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gregory.p.smith, gvanrossum, lys.nikolaou, pablogsal, rhettinger, serhiy.storchaka, slebedev
Date 2021-12-24.06:04:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640325888.4.0.220592130506.issue46167@roundup.psfhosted.org>
In-reply-to
Content
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.)
History
Date User Action Args
2021-12-24 06:04:48gvanrossumsetrecipients: + gvanrossum, rhettinger, gregory.p.smith, serhiy.storchaka, lys.nikolaou, pablogsal, slebedev
2021-12-24 06:04:48gvanrossumsetmessageid: <1640325888.4.0.220592130506.issue46167@roundup.psfhosted.org>
2021-12-24 06:04:48gvanrossumlinkissue46167 messages
2021-12-24 06:04:48gvanrossumcreate