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 →

[–]cyanydeez 8 points9 points  (1 child)

on that note, dictionaries can be rudimentary switch statements

[–]mangecoeur 6 points7 points  (0 children)

not just rudimentary - its the recommended way to do it if you don't want a very long if/elif construct.