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

Class Ig

Lib/test/test_heapq.py:453–460  ·  view source on GitHub ↗

Sequence using iterator protocol defined with a generator

Source from the content-addressed store, hash-verified

451 return v
452
453class Ig:
454 'Sequence using iterator protocol defined with a generator'
455 def __init__(self, seqn):
456 self.seqn = seqn
457 self.i = 0
458 def __iter__(self):
459 for val in self.seqn:
460 yield val
461
462class X:
463 'Missing __getitem__ and __iter__'

Callers 1

LFunction · 0.70

Calls

no outgoing calls

Tested by 1

LFunction · 0.56