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

Class Ig

Lib/test/test_set.py:1759–1766  ·  view source on GitHub ↗

Sequence using iterator protocol defined with a generator

Source from the content-addressed store, hash-verified

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

Callers 1

LFunction · 0.70

Calls

no outgoing calls

Tested by 1

LFunction · 0.56