Description:
- Dict-like collection of key-value pairs where key might occur more than once in the container. It behaves mostly like a regular dict but it may have several values for the same key and preserves insertion ordering.
Resources:
Example 1
Section titled “Example 1”Create a mutable mapping
from multidict import CIMultiDict
dct = CIMultiDict(key='val')
'Key' in dctExample 2
Section titled “Example 2”Create a dict with repeating key values
from multidict import MultiDict
new_dct = MultiDict([('a', 1), ('b', 2), ('b', 3), ('c', 5), ('d', 4), ('c', 7)])
new_dctganymede is made by Eugo