MCPcopy Index your code
hub / github.com/RustPython/RustPython / do_interact

Method do_interact

Lib/pdb.py:1386–1393  ·  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

1384 if e.startswith(text)]
1385
1386 def do_interact(self, arg):
1387 """interact
1388
1389 Start an interactive interpreter whose global namespace
1390 contains all the (global and local) names found in the current scope.
1391 """
1392 ns = {**self.curframe.f_globals, **self.curframe_locals}
1393 code.interact("*interactive*", local=ns)
1394
1395 def do_alias(self, arg):
1396 """alias [name [command [parameter parameter ...] ]]

Callers

nothing calls this directly

Calls 1

interactMethod · 0.45

Tested by

no test coverage detected