Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ R
Function
R
Lib/test/test_itertools.py:2117–2120 ·
view source on GitHub ↗
Regular generator
(seqn)
Source
from the content-addressed store, hash-verified
2115
self.makecycle(takewhile(bool, [1, 0, a, a]), a)
2116
2117
def
R(seqn):
2118
'Regular generator'
2119
for
i in seqn:
2120
yield
i
2121
2122
class
G:
2123
'Sequence using __getitem__'
Callers
1
L
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected