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

Method pop

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

Source from the content-addressed store, hash-verified

508 return tok.string
509
510 def pop(self) -> TokenInfo:
511 if not self:
512 raise ParseError('pop')
513 tok = self.tokens[self.index]
514 self.index += 1
515 return tok

Callers 15

pop_nameMethod · 0.95
pop_stringMethod · 0.95
pop_input_transMethod · 0.45
prepareMethod · 0.45
restoreMethod · 0.45
doMethod · 0.45
refreshMethod · 0.45
disp_strFunction · 0.45
maybe_run_commandFunction · 0.45
_maybe_import_moduleMethod · 0.45
_do_importMethod · 0.45
parse_importMethod · 0.45

Calls 1

ParseErrorClass · 0.70

Tested by

no test coverage detected