4 ms·
You could make it behave like a dictionary by add the __getitem__ function: config.__getitem__ = lambda x: config.get(x)
by buildbot 7y ago
You could make it behave like a dictionary by add the __getitem__ function:
config.__getitem__ = lambda x: config.get(x)