[Python-Dev] Re: PEP 622 (match statement) playground
I tried with this code: ``` from dataclasses import dataclass @dataclass class Point: x: int y: int z = 41 def whereis(point): w = 23 match point: case Point(0, 0): print("Origin") case Point(0, y): print(f"Y={y}") case Point(x, 0):
[Python-Dev] Re: PEP 622 (match statement) playground
I tried with this code: ``` from dataclasses import dataclass @dataclass class Point: x: int y: int z = 41 def whereis(point): w = 23 match point: case Point(0, 0): print("Origin") case Point(0, y): print(f"Y={y}") case Point(x, 0):