Relative Content

Tag Archive for pythonmatch-case

What does . do during a match/case?

So the match/case terminology introduced in python 3.10 is pretty cool. In general, the code <type>(arg1=value1) is changed to the code <type>(attr1=value1) during a case in a match. This allows for some very interesting and complex capturing.