How to programmatically exit pdb started in eval() or exec without showing output
In my python code I have this line: try: result = eval(command, self.globals, self.locals) except SyntaxError: exec(command, self.globals, self.locals) The command variable can be any string. Hence the python debugger pdb may be started in eval/exec and still be active when eval/exec is returning. What I want to do is make sur...