Hacker News new | ask | show | jobs
by buildbot 2241 days ago
You could make it behave like a dictionary by add the __getitem__ function:

  config.__getitem__ = lambda x: config.get(x)