Skip to content

Instantly share code, notes, and snippets.

@Elemnir
Created March 15, 2015 02:02
Show Gist options
  • Select an option

  • Save Elemnir/35a97d42a2894ee47f89 to your computer and use it in GitHub Desktop.

Select an option

Save Elemnir/35a97d42a2894ee47f89 to your computer and use it in GitHub Desktop.
Example config usage
class Config(object):
def __init__(self, param1=None, param2=None):
self.config1 = int(param1) if param1 else 5
self.config2 = str(param2) if param2 else 'hello'
cfg = Config()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment