TenjintShell.run_code

TenjintShell.run_code(code_obj, result=None)

Execute a code object.

When an exception occurs, self.showtraceback() is called to display a traceback.

Parameters
  • code_obj (code object) – A compiled code object, to be executed

  • result (ExecutionResult, optional) – An object to store exceptions that occur during execution.

Returns

  • False (successful execution.)

  • True (an error occurred.)