24 from collections.abc
import Mapping, MutableMapping
27 from ._typehandling
import GenericMapS, MutableGenericMapS
29 Mapping.register(GenericMapS)
34 className =
type(self).__name__
35 return className +
"({" +
", ".join(
"%r: %r" % (key, value)
for key, value
in self.
items()) +
"})" 40 if len(self) != len(other):
43 for key, value
in self.
items():
45 if (value != other[key]):
53 values = Mapping.values
57 MutableMapping.register(MutableGenericMapS)
62 setdefault = MutableMapping.setdefault
63 update = MutableMapping.update
66 def pop(self, key, default=None):
72 if default
is not None:
def pop(self, key, default=None)