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

Class NoGuessLen5

Lib/test/test_iter.py:689–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687
688 # Classes that lie about their lengths.
689 class NoGuessLen5:
690 def __getitem__(self, i):
691 if i >= 5:
692 raise IndexError
693 return i
694
695 class Guess3Len5(NoGuessLen5):
696 def __len__(self):

Callers 1

test_builtin_zipMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_builtin_zipMethod · 0.68