semvec/pypi-packages huggingface dataset:
multdict 0.0.5
A function to breed keys of the dict-like object

.. This file is generated. DO NOT EDIT it.
.. code-block:: python

    # pip install multdict
    # >>> from multdict import multdict

    >>> idict = {'a': ['x'], 'b': 0}

    >>> assert multdict(idict, 0) == {}

    >>> assert multdict(idict, 1) is idict

    >>> odict = multdict(idict, 2)
    >>> assert idict == {'a': ['x'], 'b': 0}
    >>> assert odict == {'a0': ['x'], 'b0': 0, 'a1': ['x'], 'b1': 0}
    >>> assert odict['a0'] is odict['a1']
justindex 0.1.0
nltk.util.Index in a standalone package.

.. This file is generated. DO NOT EDIT it.
.. code-block:: python

    # pip install justindex
    # >>> from justindex import index

    >>> index((len(s), s) for s in 'a b'.split())
    defaultdict(<class 'list'>, {1: ['a', 'b']})
    >>> index((len(s), s) for s in ''.split())
    defaultdict(<class 'list'>, {})
    >>> sorted(index((len(s), s) for s in 'a b cc'.split()).items())
    [(1, ['a', 'b']), (2, ['cc'])]