5 ms·
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://w
by cobby 6y ago
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 https://www.python.org/dev/peps/pep-0622/#runtime