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

Method do_interact

Lib/pdb.py:2360–2370  ·  view source on GitHub ↗

interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope.

(self, arg)

Source from the content-addressed store, hash-verified

2358 if e.startswith(text)]
2359
2360 def do_interact(self, arg):
2361 """interact
2362
2363 Start an interactive interpreter whose global namespace
2364 contains all the (global and local) names found in the current scope.
2365 """
2366 ns = {**self.curframe.f_globals, **self.curframe.f_locals}
2367 with self._enable_rlcompleter(ns):
2368 console = _PdbInteractiveConsole(ns, message=self.message)
2369 console.interact(banner="*pdb interact start*",
2370 exitmsg="*exit from pdb interact command*")
2371
2372 def do_alias(self, arg):
2373 """alias [name [command]]

Callers 1

test_interact_modeMethod · 0.45

Calls 3

_enable_rlcompleterMethod · 0.95
interactMethod · 0.45

Tested by 1

test_interact_modeMethod · 0.36