6.4.4
Bug fixes
-
Fixed a segmentation fault when calling :py:meth:
multidict.MultiDict.setdefaultwith a single argument -- by :user:bdraco.Related issues and pull requests on GitHub:
#1160. -
Fixed a segmentation fault when attempting to directly instantiate view objects
(multidict._ItemsView,multidict._KeysView,multidict._ValuesView) -- by :user:bdraco.View objects now raise a proper :exc:
TypeErrorwith the message "cannot create '...' instances directly"
when direct instantiation is attempted.View objects should only be created through the proper methods: :py:meth:
multidict.MultiDict.items,
:py:meth:multidict.MultiDict.keys, and :py:meth:multidict.MultiDict.values.Related issues and pull requests on GitHub:
#1164.
Miscellaneous internal changes
-
:class:
multidict.MultiDictProxywas refactored to rely only on
:class:multidict.MultiDictpublic interface and don't touch any implementation
details.Related issues and pull requests on GitHub:
#1150. -
Multidict views were refactored to rely only on
:class:multidict.MultiDictAPI and don't touch any implementation
details.Related issues and pull requests on GitHub:
#1152. -
Dropped internal
_Implclass from pure Python implementation, both pure Python and C
Extension follows the same design internally now.Related issues and pull requests on GitHub:
#1153.