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

Class G

Lib/test/test_set.py:1739–1744  ·  view source on GitHub ↗

Sequence using __getitem__

Source from the content-addressed store, hash-verified

1737 yield i
1738
1739class G:
1740 'Sequence using __getitem__'
1741 def __init__(self, seqn):
1742 self.seqn = seqn
1743 def __getitem__(self, i):
1744 return self.seqn[i]
1745
1746class I:
1747 'Sequence using iterator protocol'

Callers 1

LFunction · 0.70

Calls

no outgoing calls

Tested by 1

LFunction · 0.56