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

Class I

Lib/test/test_builtin.py:2159–2162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2157 b = (4, 5, 6, 7)
2158 self.assertEqual(list(zip(a, b)), t)
2159 class I:
2160 def __getitem__(self, i):
2161 if i < 0 or i > 2: raise IndexError
2162 return i + 4
2163 self.assertEqual(list(zip(a, I())), t)
2164 self.assertEqual(list(zip()), [])
2165 self.assertEqual(list(zip(*[])), [])

Callers 1

test_zipMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_zipMethod · 0.56