Have you considered using collections.ChainMap for this kind of thing? The root/first dictionary keys could each refer to the nested dictionaries, and you could access all the nested keys like this:
my_chainmap.parents.keys()
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/J4IOFIGIABIOUOOF4GRG5M6PIXB5ACZ3/ Code of Conduct: http://python.org/psf/codeofconduct/