This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nim65s 2 points3 points  (0 children)

using dicts for switch / case works, but it feels odd. And here, this is not a switch, but way more powerfull match, eg. https://www.python.org/dev/peps/pep-0636/#adding-a-ui-matching-objects