self.data.extend(other.data)
else:
self.data.extend(other)
-
-collections.MutableSequence.register(UserList)
def insert(self, index, value):
self[index:index] = value
-collections.MutableSequence.register(MutableString)
-
if __name__ == "__main__":
# execute the regression test to stdout, if called as a script:
import os
d[key] = value
return d
-MutableMapping.register(UserDict)
-
################################################################################
L.append(o)
return L
-collections.MutableMapping.register(WeakValueDictionary)
class KeyedRef(ref):
"""Specialized reference that includes a key corresponding to the value.
d[ref(key, self._remove)] = value
if len(kwargs):
self.update(kwargs)
-
-collections.MutableMapping.register(WeakKeyDictionary)