Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ is_loop
Method
is_loop
Tools/peg_generator/pegen/grammar.py:69–70 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
67
self.leader = False
68
69
def
is_loop(self) -> bool:
70
return
self.name.startswith(
"_loop"
)
71
72
def
is_gather(self) -> bool:
73
return
self.name.startswith(
"_gather"
)
Callers
5
flatten
Method · 0.95
visit_NameLeaf
Method · 0.80
generate
Method · 0.80
visit_Rule
Method · 0.80
visit_Rule
Method · 0.80
Calls
1
startswith
Method · 0.45
Tested by
no test coverage detected