MCPcopy Index your code
hub / github.com/python/cpython / __setitem__

Method __setitem__

Lib/test/test_descr.py:429–431  ·  view source on GitHub ↗
(self_local, key, value)

Source from the content-addressed store, hash-verified

427 def __getitem__(self, key):
428 return self.get(key, 0)
429 def __setitem__(self_local, key, value):
430 self.assertIsInstance(key, int)
431 dict.__setitem__(self_local, key, value)
432 def setstate(self, state):
433 self.state = state
434 def getstate(self):

Callers 1

test_slicesMethod · 0.45

Calls 1

assertIsInstanceMethod · 0.80

Tested by

no test coverage detected