good name for a dict/list hybrid

Andrew Dalke adalke at mindspring.com
Wed Jan 8 22:48:22 EST 2003


 > I have a class which I'm calling DictList.  Its used for an ordered
 > dictionary which can have multiple keys, though in almost all cases
 > it only has single keys.

Thanks for the various suggestions.

Based on a suggestion from private mail I chose 'OrderedMultiDict'.
I've also implemented 'UnorderedMultiDict' which has weaker guarantees
about order, at the advantage of better deletion performance.  They
are both available in a module called 'MultiDict'.

 > Code will be posted after I get a good name.  :)

Attached.  Let me know if this proves useful to anyone else.

					Andrew
					dalke at dalkescientific.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MultiDict.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20030108/1789307f/attachment.ksh>


More information about the Python-list mailing list