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

Class X

Lib/test/test_slice.py:236–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 def test_setslice_without_getslice(self):
235 tmp = []
236 class X(object):
237 def __setitem__(self, i, k):
238 tmp.append((i, k))
239
240 x = X()
241 x[1:2] = 42

Callers 1

Calls

no outgoing calls

Tested by 1