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

Class G

Lib/test/test_set.py:1737–1742  ·  view source on GitHub ↗

Sequence using __getitem__

Source from the content-addressed store, hash-verified

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

Callers 1

LFunction · 0.70

Calls

no outgoing calls

Tested by 1

LFunction · 0.56