MCPcopy Index your code
hub / github.com/prompt-toolkit/ptpython / _store_eval_result

Method _store_eval_result

src/ptpython/repl.py:373–375  ·  view source on GitHub ↗
(self, result: object)

Source from the content-addressed store, hash-verified

371 return None
372
373 def _store_eval_result(self, result: object) -> None:
374 locals: dict[str, Any] = self.get_locals()
375 locals["_"] = locals[f"_{self.current_statement_index}"] = result
376
377 def get_compiler_flags(self) -> int:
378 return super().get_compiler_flags() | PyCF_ALLOW_TOP_LEVEL_AWAIT

Callers 2

evalMethod · 0.95
eval_asyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected