For options that don't have defaults included in the main Config class, I think conf.get('THEOPTION') is a nicer way to use the config than getattr(conf, 'THEOPTION', None). Now that I've typed out that reasoning, I'm wondering if just adding a get method is better than the full Mapping interface.
For options that don't have defaults included in the main Config class, I think
conf.get('THEOPTION')
is a nicer way to use the config thangetattr(conf, 'THEOPTION', None)
. Now that I've typed out that reasoning, I'm wondering if just adding aget
method is better than the full Mapping interface.