Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ peek_name
Method
peek_name
Lib/_pyrepl/_module_completer.py:488–491 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
486
return
self.tokens[self.index]
487
488
def
peek_name(self) -> bool:
489
if
not (tok := self.peek()):
490
return
False
491
return
tok.type == token.NAME
492
493
def
pop_name(self) -> str:
494
tok = self.pop()
Callers
1
parse_dotted_name
Method · 0.80
Calls
1
peek
Method · 0.95
Tested by
no test coverage detected