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 BTaskaya
Recipients BTaskaya
Date 2020-06-19.22:57:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592607439.16.0.781875892842.issue41044@roundup.psfhosted.org>
In-reply-to
Content
Python generator generates two trailing commas instead of one when both repeat0 (*) + optional ([]) qualifiers used. Example failing test (raises a SyntaxError, since the generated parser can't be parseable / executable)

    def test_opt_sequence(self) -> None:
        grammar = """
        start: [NAME*]
        """
        # This case was failing because of double trailing comma at the end
        # of the generated parser. See bpo-
        make_parser(grammar)
History
Date User Action Args
2020-06-19 22:57:19BTaskayasetrecipients: + BTaskaya
2020-06-19 22:57:19BTaskayasetmessageid: <1592607439.16.0.781875892842.issue41044@roundup.psfhosted.org>
2020-06-19 22:57:19BTaskayalinkissue41044 messages
2020-06-19 22:57:19BTaskayacreate