Interpreter.exec

Interpreter.exec(code: str)

Executes code and returns a new global namespace in which it was executed, wrapped in a pyto_runtime.Object.

Can raise an pyto_runtime.IntepreterException.

Parameters:

code – Code to execute.