Closed wimglenn closed 1 year ago
When attempting to replace the global configuration container in a big and old project (which was using an optparse.Values-like thing), we got bitten by this:
optparse.Values
>>> cfg = Config(data={"foo": 1, "bar": 2}) >>> hasattr(cfg, "foo") True >>> delattr(cfg, "foo") AttributeError: 'Config' object has no attribute 'foo'
This PR adds support for deletion.
When attempting to replace the global configuration container in a big and old project (which was using an
optparse.Values
-like thing), we got bitten by this:This PR adds support for deletion.