PEP 634
E253900
PEP 634 is the Python Enhancement Proposal that formally specifies the semantics of structural pattern matching introduced in Python 3.10.
All labels observed (2)
| Label | Occurrences |
|---|---|
| PEP 634 canonical | 7 |
| PEP 634 structural pattern matching semantics | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T2301343 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
NED1
Entity disambiguation (via context triple)
gpt-5-mini-2025-08-07
Target entity: PEP 634 Context triple: [PEP 622, supersededBy, PEP 634]
-
A.
PEP 695
PEP 695 is a Python Enhancement Proposal that introduces a new, more concise syntax for type parameter declarations to improve the language’s support for generics and static typing.
-
B.
PEP 622
PEP 622 is a Python Enhancement Proposal that introduced the design for structural pattern matching syntax later adopted in Python 3.10.
-
C.
PEP 13
PEP 13 is the Python Enhancement Proposal that defines the process and rules for selecting and operating the Python Steering Council, the core governance body of the Python project.
-
D.
PEP 572
PEP 572 is the Python proposal that introduced the “walrus operator” (:=) for assignment expressions, allowing assignment within larger expressions.
-
E.
PEP 0
PEP 0 is the index document that lists and tracks the status of all Python Enhancement Proposals (PEPs) in the Python community.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
NED2
Entity disambiguation (via description)
gpt-5-mini-2025-08-07
Target entity: PEP 634 Target entity description: PEP 634 is the Python Enhancement Proposal that formally specifies the semantics of structural pattern matching introduced in Python 3.10.
-
A.
PEP 695
PEP 695 is a Python Enhancement Proposal that introduces a new, more concise syntax for type parameter declarations to improve the language’s support for generics and static typing.
-
B.
PEP 622
PEP 622 is a Python Enhancement Proposal that introduced the design for structural pattern matching syntax later adopted in Python 3.10.
-
C.
PEP 13
PEP 13 is the Python Enhancement Proposal that defines the process and rules for selecting and operating the Python Steering Council, the core governance body of the Python project.
-
D.
PEP 572
PEP 572 is the Python proposal that introduced the “walrus operator” (:=) for assignment expressions, allowing assignment within larger expressions.
-
E.
PEP 0
PEP 0 is the index document that lists and tracks the status of all Python Enhancement Proposals (PEPs) in the Python community.
- F. None of above. chosen
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf | Python Enhancement Proposal ⓘ |
| author | Brandt Bucher ⓘ |
| bdflDelegate |
Guido van Rossum
ⓘ
Pablo Galindo ⓘ |
| belongsTo | CPython reference documentation ecosystem ⓘ |
| created | 2020-02-10 ⓘ |
| definesConcept |
AS pattern
ⓘ
OR pattern ⓘ capture pattern ⓘ class pattern ⓘ guard in case clause ⓘ mapping pattern ⓘ sequence pattern ⓘ value pattern ⓘ wildcard pattern ⓘ |
| definesSemanticsFor |
pattern matching on OR patterns
ⓘ
pattern matching on classes ⓘ pattern matching on literals ⓘ pattern matching on mappings ⓘ pattern matching on sequences ⓘ pattern matching with guards ⓘ |
| definesSyntaxFor |
case pattern
ⓘ
match statement ⓘ |
| definesTerm |
irrefutable pattern
ⓘ
refutable pattern ⓘ subject value (in match statement) ⓘ |
| discussionsTo | [email protected] ⓘ |
| governs | behavior of match-case statement in Python 3.10+ ⓘ |
| introducedIn | Python 3.10 ⓘ |
| language | English ⓘ |
| partOf | Python language specification process ⓘ |
| pepNumber | 634 ⓘ |
| pythonVersion | 3.10 ⓘ |
| relatedTo |
PEP 635
ⓘ
PEP 636 ⓘ |
| replaces | PEP 622 ⓘ |
| requires |
changes to CPython compiler
ⓘ
changes to CPython runtime ⓘ |
| specifies | semantics of structural pattern matching ⓘ |
| sponsor |
Guido van Rossum
ⓘ
Pablo Galindo ⓘ |
| status | Final ⓘ |
| targetAudience |
Python core developers
ⓘ
Python language implementers ⓘ Python library authors ⓘ |
| title |
Structural Pattern Matching
ⓘ
surface form:
Structural Pattern Matching: Specification
|
| topic | structural pattern matching ⓘ |
| type | Standards Track ⓘ |
| url | https://peps.python.org/pep-0634/ ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
Instruction
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Input
Subject: PEP 634 Description of subject: PEP 634 is the Python Enhancement Proposal that formally specifies the semantics of structural pattern matching introduced in Python 3.10.
Referenced by (8)
Full triples — surface form annotated when it differs from this entity's canonical label.
this entity surface form:
PEP 634 structural pattern matching semantics