summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-07 16:16:12 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-07 16:16:12 (GMT)
commit3bed4aeea52ece30c2a237ab7b92f611b0052284 (patch)
tree12f059346235b3f7f054229354c0dd087ed2d04b /Lib/UserDict.py
parentbf0610a1ca0019f27d37de4a2f11d926297125ce (diff)
downloadcpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.zip
cpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.tar.gz
cpython-3bed4aeea52ece30c2a237ab7b92f611b0052284.tar.bz2
Register IterableUserDict as a MutableMapping.
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r--Lib/UserDict.py4
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,