PEP 622

E51738

PEP 622 is a Python Enhancement Proposal that introduced the design for structural pattern matching syntax later adopted in Python 3.10.


Statements (39)
Predicate Object
instanceOf Python Enhancement Proposal
author Brandt Bucher
Guido van Rossum
Ivan Levkivskyi
Jelle Zijlstra
Tobias Kohn
category Standards Track
createdForVersion Python 3.10
definesConcept AS patterns
OR patterns
case block
class patterns
guard in pattern matching
mapping patterns
match statement
sequence patterns
discusses implementation considerations
semantics of pattern matching
syntax for structural pattern matching
hasNumber 622
hasTitle Structural Pattern Matching
influenced PEP 634
PEP 635
PEP 636
language Python
motivation provide a concise way to destructure and match data
proposesFeature structural pattern matching
relatedTo PEP 572
PEP 622 reference implementation
repository https://peps.python.org/pep-0622/
resultedIn adoption of structural pattern matching in Python 3.10
status Withdrawn
supersededBy PEP 634
PEP 635
PEP 636
topic case patterns
match statement
pattern matching syntax
withdrawnReason split into more focused PEPs 634, 635, and 636

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.


Please wait…