Multidict

Latest version: v6.1.0

Safety actively analyzes 697960 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 10

4.7.5

------------------

Bugfixes
^^^^^^^^

- Fixed creating and updating of :class:`~multidict.MultiDict`
from a sequence of pairs and keyword arguments. Previously passing
a list argument modified it inplace, and other sequences caused an
error.
:issue:`457`
- Fixed comparing with mapping: an exception raised in the
:py:meth:`~object.__len__` method caused raising a SyntaxError.
:issue:`459`
- Fixed comparing with mapping: all exceptions raised in the
:py:meth:`~object.__getitem__` method were silenced.
:issue:`460`

4.7.4

------------------

Bugfixes
^^^^^^^^

- ``MultiDict.iter`` fix memory leak when used iterator over
:py:class:`~multidict.MultiDict` instance.
:issue:`452`

4.7.3

----------------------------

Features
^^^^^^^^

- Implement ``__sizeof__`` function to correctly calculate all internal structures size.
:issue:`444`
- Expose ``getversion()`` function.
:issue:`451`


Bugfixes
^^^^^^^^

- Fix crashes in ``popone``/``popall`` when default is returned.
:issue:`450`


Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

- Corrected the documentation for ``MultiDict.extend()``
:issue:`446`

4.7.2

------------------

Bugfixes
^^^^^^^^

- Fixed crashing when multidict is used pyinstaller
:issue:`432`
- Fixed typing for :py:meth:`CIMultiDict.copy() <multidict.MultiDict.copy>`
:issue:`434`
- Fixed a memory leak in :py:meth:`MultiDict.copy() <multidict.MultiDict.copy>`
:issue:`443`

4.7.1

------------------

Bugfixes
^^^^^^^^

- :py:meth:`CIMultiDictProxy.copy() <multidict.MultiDictProxy.copy>` fixed to
return a case-insensitive :py:class:`multidict._multidict.CIMultiDict()
<multidict.MultiDict>` object.
:issue:`427`
- Made :py:class:`~multidict.CIMultiDict` subclassable again.
:issue:`416`
- Fixed a regression, :class:`multidict.MultiDict` can be constructed
from an arbitrary iterable of pairs again.
:issue:`418`
- :py:meth:`CIMultiDict.add() <multidict.MultiDict.add>` may be called
with keyword arguments now.
:issue:`421`


Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

- Mention ``MULTIDICT_NO_EXTENSIONS`` environment variable in docs.
:issue:`393`
- Document the fact that ``istr`` preserves the casing of argument untouched but uses internal lower-cased copy for keys comparison.
:issue:`419`

4.7.0

------------------

Features
^^^^^^^^

- Replace Cython optimization with pure C
:issue:`249`
- Implement ``__length_hint__()`` for iterators
:issue:`310`
- Support the MultiDict[str] generic specialization in the runtime.
:issue:`392`
- Embed pair_list_t structure into MultiDict Python object
:issue:`395`
- Embed multidict pairs for small dictionaries to amortize the memory usage.
:issue:`396`
- Support weak references to C Extension classes.
:issue:`399`
- Add docstrings to provided classes.
:issue:`400`
- Merge ``multidict._istr`` back with ``multidict._multidict``.
:issue:`409`


Bugfixes
^^^^^^^^

- Explicitly call ``tp_free`` slot on deallocation.
:issue:`407`
- Return class from __class_getitem__ to simplify subclassing
:issue:`413`

Page 3 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.