Run result object (runresult)

This object encapsulates the result of trying to compile and run a sample piece of code with compiler.run() or run_command().

Returned by

Run result object objects are returned by the following functions and methods:

Run result object methods

runresult.compiled()

If true, the compilation succeeded, if false it did not and the other methods return unspecified data. This is only available for compiler.run() results.

Signature

bool compiled()


runresult.returncode()

The return code of executing the compiled binary

Signature

int returncode()


runresult.stderr()

The standard error produced when the command was run.

Signature

str stderr()


runresult.stdout()

The standard out produced when the command was run.

Signature

str stdout()


The results of the search are