News

The creators of the Python language are mulling a new proposal, PEP 622, that would finally bring a pattern matching statement syntax to Python.
Each case statement is followed by a pattern to match against. In the above example we’re using simple strings as our match targets, but more complex matches are possible.