Re:Box: Python dictionaries with recursive dot notation access
by Retra on Friday May 05, 2017 @08:49PM
(#14277983)
Personally, I only use hard-coded strings like that for shallow nesting. If I need to index 4 layers deep, something down there is going to be turned into an object, otherwise enumerating all the possible keys to ensure the code is correct becomes a nightmare. And once you do that, you can use dot notation anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.