Tag: switches

Python Switches to Match-Case
Post

Python Switches to Match-Case

Originally posted on dev. If reading about code with foo, bar, and math examples is the bane of your existence, keep reading. Expect examples with sweaters and dogs. Jump to: Past Present Benefits Example 1 Example 2 Future Past Once upon a time, in 2006, a Python Enhancement Proposal(PEP) was introduced. PEP 3103 detailed many different ways a switch...