Register IterableUserDict as a MutableMapping.

This commit is contained in:
Georg Brandl 2008-06-07 16:16:12 +00:00
parent bf0610a1ca
commit 3bed4aeea5
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class IterableUserDict(UserDict):
def __iter__(self):
return iter(self.data)
import _abcoll
_abcoll.MutableMapping.register(IterableUserDict)
class DictMixin:
# Mixin defining all dictionary methods for classes that already have
# a minimum dictionary interface including getitem, setitem, delitem,