MCPcopy
hub / github.com/prompt-toolkit/ptpython / _remove_from_namespace

Method _remove_from_namespace

src/ptpython/repl.py:420–425  ·  view source on GitHub ↗

Remove added symbols from the globals.

(self)

Source from the content-addressed store, hash-verified

418 globals["exit"] = exit()
419
420 def _remove_from_namespace(self) -> None:
421 """
422 Remove added symbols from the globals.
423 """
424 globals = self.get_globals()
425 del globals["get_ptpython"]
426
427 def print_paginated_formatted_text(
428 self,

Callers 2

runMethod · 0.95
run_asyncMethod · 0.95

Calls 1

get_globalsMethod · 0.80

Tested by

no test coverage detected