Popular recipes tagged "data_structures"http://code.activestate.com/recipes/tags/data_structures/2009-07-08T13:52:49-07:00ActiveState Code RecipesMultimap: Associating multiple values to a key. (Python) 2009-07-08T13:52:49-07:00Jack Trainorhttp://code.activestate.com/recipes/users/4076953/http://code.activestate.com/recipes/576835-multimap-associating-multiple-values-to-a-key/ <p style="color: grey"> Python recipe 576835 by <a href="/recipes/users/4076953/">Jack Trainor</a> (<a href="/recipes/tags/data_structures/">data_structures</a>, <a href="/recipes/tags/defaultdictionary/">defaultdictionary</a>, <a href="/recipes/tags/dictionary/">dictionary</a>, <a href="/recipes/tags/multimap/">multimap</a>). </p> <p>Implementation of multimap based on lists, dicts, or sets using Python 2.5 defaultdict.</p>