MCPcopy Index your code
hub / github.com/RustPython/RustPython / __setitem__

Method __setitem__

Lib/test/test_copy.py:735–738  ·  view source on GitHub ↗
(self, key, item)

Source from the content-addressed store, hash-verified

733 self._keys = list(d.keys())
734 super().__init__(d)
735 def __setitem__(self, key, item):
736 super().__setitem__(key, item)
737 if key not in self._keys:
738 self._keys.append(key)
739 x = C(d={'foo':0})
740 y = copy.deepcopy(x)
741 self.assertEqual(x, y)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected