Experts,
I am coming from Perl background and very much used to using nested hash structures like $row{dept}{owner}{name}{access} = "\\server\path";
Tried doing similar in Python using,
row = collections.defaultdict(dict)
row[dept][owner]
works but cannot do row[dept][owner][name][access]
Tried string concat to merge 4 values into 2 like, row[dept_owner][name_access]
but that does not solve the purpose. Say, if I directly want to find keys/values for row["IT"]["John Smith"]["Reporting"]
Should I improve on defaultdict
or there is another/better way to do this, really appreciate it.