Created
March 15, 2015 02:02
-
-
Save Elemnir/35a97d42a2894ee47f89 to your computer and use it in GitHub Desktop.
Example config usage
This file contains hidden or 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
| 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