commit | 3bed4aeea52ece30c2a237ab7b92f611b0052284 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Jun 07 16:16:12 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Jun 07 16:16:12 2008 +0000 |
tree | 12f059346235b3f7f054229354c0dd087ed2d04b | |
parent | bf0610a1ca0019f27d37de4a2f11d926297125ce [diff] |
Register IterableUserDict as a MutableMapping.
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 @@ 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,