When more than one value can map to the same key, we need
{key, [value1, value2]}.
This function builds it out of [(key, value1), (key, value2)]
Beware, values cannot be lists.
Definition at line 17 of file libcore.py.
19 When more than one value can map to the same key, we need
20 {key, [value1, value2]}.
22 This function builds it out of [(key, value1), (key, value2)]
24 Beware, values cannot be lists.
29 for key, value
in iterable:
30 if key
in result
and not isinstance(result[key], list):
31 result[key] = [result[key], value]