News for hackers. Stuff that matters.
Re:Box: Python dictionaries with recursive dot notation access by yeukhon on Friday May 05, 2017 @09:49PM (#14278229)
I understand. I have another motivation which is getting JSON and wanting a OOP object to mainpluate with. Take AWS' boto3 response. Well documented but the nested response structure gives me a chill and I wish there's a direct object out of the JSON. I instead had to write my own class for the conversion. If I could mainpluate dict like mainpluatig attribute in a class then I could just write my function's contract "input is a response object from X APi" instead of "dict of this form."

Quite annoying and I know some people considered what I wish is a bad practice.

There are no comments on this comment yet.