News for hackers. Stuff that matters.
Re:PEP 622 – Structural Pattern Matching by csantini on Wednesday June 24, 2020 @09:58AM (#23627923)
If you want it today, Pampy does most of it:

https://github.com/santinic/pampy

Even match on Point(x, y, _)

Re:PEP 622 – Structural Pattern Matching by JNRowe on Wednesday June 24, 2020 @06:40PM (#23634671)
There is also switchlang¹ which isn't quite the same thing, but provides some of the functionality of PEP-622 and pampy. I believe it is notable for including a nice descriptive README, and also having a small/simple implementation.

I personally prefer the pampy internals, but quite like the context manager usage from switchlang. I don't even know which bikeshed I want to paint, let alone the colour.

1. https://github.com/mikeckennedy/python-switch

Re:PEP 622 – Structural Pattern Matching by cobby on Wednesday June 24, 2020 @11:54AM (#23629419)
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

Re:PEP 622 – Structural Pattern Matching by carapace on Wednesday June 24, 2020 @12:38PM (#23630243)
Wow, that's way cooler than the PEP! "You can write a Lisp calculator in 5 lines" Oh my!