diff options
author | Georg Brandl <georg@python.org> | 2008-06-07 16:16:12 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-06-07 16:16:12 (GMT) |
commit | 3bed4aeea52ece30c2a237ab7b92f611b0052284 (patch) | |
tree | 12f059346235b3f7f054229354c0dd087ed2d04b /Lib | |
parent | bf0610a1ca0019f27d37de4a2f11d926297125ce (diff) | |
download | cpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.zip cpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.tar.gz cpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.tar.bz2 |
Register IterableUserDict as a MutableMapping.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/UserDict.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py index 39f4d07..0d9591a 100644 --- a/Lib/UserDict.py +++ b/Lib/UserDict.py @@ -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, |