[$] Python structural pattern matching morphs again

Post Syndicated from original https://lwn.net/Articles/838600/rss

A way to specify multiply branched conditionals in the Python language—akin
to the C switch statement—has been
a longtime feature request. Over the years, various proposals have been
mooted, but none has ever crossed the finish line and made it into the
language. A highly ambitious proposal that
would solve the multi-branch-conditional problem (and quite a bit more) has
been discussed—dissected, perhaps—in the Python community over the last six
months or so. We have covered
some of the discussion in August and September, but the ground has shifted once
again so it is time to see where things stand.