Popular recipes by Jay O'Connor http://code.activestate.com/recipes/users/98037/2001-03-15T17:14:43-08:00ActiveState Code RecipesOrderedDictionary (Python) 2001-03-15T17:14:43-08:00Jay O'Connorhttp://code.activestate.com/recipes/users/98037/http://code.activestate.com/recipes/52270-ordereddictionary/ <p style="color: grey"> Python recipe 52270 by <a href="/recipes/users/98037/">Jay O'Connor</a> . </p> <p>This is a class that acts like a dictionary, except that it maintains insert order. This can be useful when you wish to associate two objects in a key-value manner and would like to use a dictionary interface to access the elements, but you need to remember what order the elements were added</p>