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

Method parse

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

Source from the content-addressed store, hash-verified

342 self.tokens = TokenQueue(tokens[::-1])
343
344 def parse(self) -> tuple[str | None, str | None] | None:
345 if not (res := self._parse()):
346 return None
347 return res.from_name, res.name
348
349 def _parse(self) -> Result | None:
350 with self.tokens.save_state():

Callers 3

test_parseMethod · 0.95
test_parse_errorMethod · 0.95
get_completionsMethod · 0.45

Calls 1

_parseMethod · 0.95

Tested by 2

test_parseMethod · 0.76
test_parse_errorMethod · 0.76