Message371908
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) |
|
Date |
User |
Action |
Args |
2020-06-19 22:57:19 | BTaskaya | set | recipients:
+ BTaskaya |
2020-06-19 22:57:19 | BTaskaya | set | messageid: <1592607439.16.0.781875892842.issue41044@roundup.psfhosted.org> |
2020-06-19 22:57:19 | BTaskaya | link | issue41044 messages |
2020-06-19 22:57:19 | BTaskaya | create | |
|