A function to breed keys of the dict-like object
Project description
>>> idict = {'a': ['a'], 'b': ['b']}
>>> odict = multdict(idict, 2)
>>> assert odict == {'a0': ['a'], 'b0': ['b'], 'a1': ['a'], 'b1': ['b']}
>>> assert odict['a0'] is odict['a1']
>>> assert multdict(idict, 1) == idict
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
multdict-0.0.1.tar.gz
(886 Bytes
view hashes)