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

Class MySequenceClass

Lib/test/test_iter.py:397–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395 # Test exception propagation through sequence iterator
396 def test_exception_sequence(self):
397 class MySequenceClass(SequenceClass):
398 def __getitem__(self, i):
399 if i == 10:
400 raise RuntimeError
401 return SequenceClass.__getitem__(self, i)
402 res = []
403 try:
404 for x in MySequenceClass(20):

Callers 2

test_stop_sequenceMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_stop_sequenceMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…