Created
June 13, 2013 23:58
-
-
Save erikrose/5778447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_stuff(thing): | |
config = { | |
2: {'message': "Flibbety jibbet!"}, | |
4: {'message': "A!\nFlibbety jibbet!"}, | |
5: {'message': "B!\nFlibbety jibbet!"}, | |
7: {'message': "C!", 'run_funcs': False}, | |
} | |
if thing not in config: | |
return | |
print config[thing]['message'] | |
if config[thing].get('run_funcs', True): | |
render_golfclubs() | |
sneeze_loudly(True) | |
do_other_stuff() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment