Skip to content

Conversation

@markshannon
Copy link
Member

  • Change name of MATCH_CLASS to MATCH_POSITIONAL.
  • Drop __attributes__ and use __match_args__ instead.
    • For MATCH_DEFAULT, __match_args__ acts a map from positions to names.
    • For MATCH_POSITIONAL, __match_args__ acts a map from names to positions.
  • Change semantics of MATCH_DEFAULT when match class patterns to those of PEP 634.
  • Update translations.
  • Further expand examples

@markshannon markshannon force-pushed the pep-653-closer-to-634 branch from 49fa795 to c45b57c Compare March 12, 2021 17:17
@markshannon markshannon merged commit 3cc8633 into python:master Mar 12, 2021
@markshannon markshannon deleted the pep-653-closer-to-634 branch March 23, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants