================ @@ -116,19 +118,50 @@ def run_python_interpreter(local_dict): print("Script exited with code %s" % e.code) +class LLDBInteractiveConsole(code.InteractiveConsole): + def __init__(self, locals=None): + super().__init__(locals) + self.result_output = None + + ### Implementation detail: + ### https://docs.python.org/3/library/code.html#code.InteractiveInterpreter.runsource + def runsource(self, source, filename="<input>", symbol="single"): ---------------- JDevlieghere wrote:
If you don't need any of the arguments, can you use `**kwargs` and forward everything so that we don't need to maintain our own default values? https://github.com/llvm/llvm-project/pull/109440 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits