When struct mode is enabled, DictConfig behaves like a normal dictionary and also like a real object.
Make sure exceptions thrown are consistent with Python:
- foo["not_found"] should raise key error
- foo.not_found should raise attribute error.
Note that while not in struct node, both of those return None instead of raising an error.
When struct mode is enabled, DictConfig behaves like a normal dictionary and also like a real object.
Make sure exceptions thrown are consistent with Python:
Note that while not in struct node, both of those return None instead of raising an error.