mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Register IterableUserDict as a MutableMapping.
This commit is contained in:
parent
bf0610a1ca
commit
3bed4aeea5
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue