ParentFull threadimprov32·The data structure OrderedDict does what you describe and has been in the stdlib since I think 2.7View on HN