Python multimap

brad byte8bits at gmail.com
Wed Aug 27 09:35:34 EDT 2008


Recently had a need to us a multimap container in C++. I now need to 
write equivalent Python code. How does Python handle this?

k['1'] = 'Tom'
k['1'] = 'Bob'
k['1'] = 'Joe'
...

Same key, but different values. No overwrites either.... They all must 
be inserted into the container

Thanks,
Brad



More information about the Python-list mailing list