Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_iter_range
Method
test_iter_range
Lib/test/test_iter.py:433–434 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
431
432
# Test a range
433
def
test_iter_range(self):
434
self.check_for_loop(iter(range(10)), list(range(10)))
435
436
# Test a string
437
def
test_iter_string(self):
Callers
nothing calls this directly
Calls
2
check_for_loop
Method · 0.95
list
Class · 0.85
Tested by
no test coverage detected