Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cobby
on June 24, 2020
|
parent
|
context
|
favorite
| on:
PEP 622 – Structural Pattern Matching
How did they implement Point(x, y, _) matching? PEP proposes a special protocol [1] based on __match__ classmethod. Do they do something similar?
[1]
https://www.python.org/dev/peps/pep-0622/#runtime
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://www.python.org/dev/peps/pep-0622/#runtime