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

Class IntsFrom

Lib/test/test_iter.py:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654
655 # Generate all ints starting at constructor arg.
656 class IntsFrom:
657 def __init__(self, start):
658 self.i = start
659
660 def __iter__(self):
661 return self
662
663 def __next__(self):
664 i = self.i
665 self.i = i+1
666 return i
667
668 f = open(TESTFN, "w", encoding="utf-8")
669 try:

Callers 1

test_builtin_zipMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_builtin_zipMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…