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 brandtbucher
Recipients brandtbucher, lys.nikolaou, pablogsal
Date 2021-06-09.19:47:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623268055.49.0.141846106713.issue44368@roundup.psfhosted.org>
In-reply-to
Content
Here are a few that I found. Not sure when they were introduced:

match ...:
    case {**rest, "key": value}:
        pass

match ...:
    case {"first": first, **rest, "last": last}:
        pass

match ...:
    case {**_}:
        pass

These all give the following error while parsing the second line:

  File "<stdin>", line 1
    match ...:
    ^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
History
Date User Action Args
2021-06-09 19:47:35brandtbuchersetrecipients: + brandtbucher, lys.nikolaou, pablogsal
2021-06-09 19:47:35brandtbuchersetmessageid: <1623268055.49.0.141846106713.issue44368@roundup.psfhosted.org>
2021-06-09 19:47:35brandtbucherlinkissue44368 messages
2021-06-09 19:47:35brandtbuchercreate