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

Method pop_name

Lib/_pyrepl/_module_completer.py:493–497  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

491 return tok.type == token.NAME
492
493 def pop_name(self) -> str:
494 tok = self.pop()
495 if tok.type != token.NAME:
496 raise ParseError('pop_name')
497 return tok.string
498
499 def peek_string(self, string: str) -> bool:
500 if not (tok := self.peek()):

Callers 3

parse_dotted_as_nameMethod · 0.80
parse_dotted_nameMethod · 0.80
parse_as_nameMethod · 0.80

Calls 2

popMethod · 0.95
ParseErrorClass · 0.70

Tested by

no test coverage detected