Kaydet (Commit) 3bed4aee authored tarafından Georg Brandl's avatar Georg Brandl

Register IterableUserDict as a MutableMapping.

üst bf0610a1
...@@ -79,6 +79,10 @@ class IterableUserDict(UserDict): ...@@ -79,6 +79,10 @@ class IterableUserDict(UserDict):
def __iter__(self): def __iter__(self):
return iter(self.data) return iter(self.data)
import _abcoll
_abcoll.MutableMapping.register(IterableUserDict)
class DictMixin: class DictMixin:
# Mixin defining all dictionary methods for classes that already have # Mixin defining all dictionary methods for classes that already have
# a minimum dictionary interface including getitem, setitem, delitem, # a minimum dictionary interface including getitem, setitem, delitem,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment