3 ms·
If you want readonly access using dot notation instead of keys then I have a simple gist [1] I use that works well for tracking nested dicts - even nested insid
by mmerickel 9y ago
If you want readonly access using dot notation instead of keys then I have a simple gist [1] I use that works well for tracking nested dicts - even nested inside lists. It's a good way to pass a dict into a function expecting an object in some scenarios.
[1] https://gist.github.com/mmerickel/ff4c6faf867d72c1f19c https://gist.github.com/mmerickel/ff4c6faf867d72c1f19c