Case / Switch Comes to Python in 3.10
Python 3.10 is adding a new feature called Structural Pattern Matching, which is defined in PEP 634 and has a tutorial on the topic in PEP 636. Structural Pattern Matching brings the case / switch statement to Python. The new syntax goes beyond what some languages use for their case statements. This tutorial’s aim is […]
Case / Switch Comes to Python in 3.10 Read More »