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

Class Sequence

Lib/test/seq_tests.py:18–23  ·  view source on GitHub ↗

Sequence using __getitem__

Source from the content-addressed store, hash-verified

16 yield i
17
18class Sequence:
19 'Sequence using __getitem__'
20 def __init__(self, seqn):
21 self.seqn = seqn
22 def __getitem__(self, i):
23 return self.seqn[i]
24
25class IterFunc:
26 'Sequence using iterator protocol'

Callers 1

itermultiFunction · 0.70

Calls

no outgoing calls

Tested by 1

itermultiFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…