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

Class Ig

Lib/test/test_set.py:1757–1764  ·  view source on GitHub ↗

Sequence using iterator protocol defined with a generator

Source from the content-addressed store, hash-verified

1755 return v
1756
1757class Ig:
1758 'Sequence using iterator protocol defined with a generator'
1759 def __init__(self, seqn):
1760 self.seqn = seqn
1761 self.i = 0
1762 def __iter__(self):
1763 for val in self.seqn:
1764 yield val
1765
1766class X:
1767 'Missing __getitem__ and __iter__'

Callers 1

LFunction · 0.70

Calls

no outgoing calls

Tested by 1

LFunction · 0.56