Python's equivalent of C++ std::multimap

Erik Max Francis max at alcyone.com
Fri Mar 5 04:05:13 EST 2004


Boogie El Aceitoso wrote:

> What's Python's equivalent of C++'s std::multimap? Is there any
> 'multidict'?

No, but there's nothing preventing a dictionary from having values that
are sequences.  This would be the traditional Python way of getting the
equivalent of a std::multimap.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ All men think all men mortal, save themselves.
    -- Edmund Young



More information about the Python-list mailing list