Interpreter.run_code

Interpreter.run_code(code: str, args=[], debug: bool = False) → int

Runs code.

It returns the exit code or raises an pyto_runtime.IntepreterException.

Parameters:
  • code – Code to execute.

  • args – The command line arguments.

  • debug – Boolean indicating whether breakpoints should be enabled.