moo.core.code.do_eval

moo.core.code.do_eval(code, locals, globals, *args, filename='<string>', runtype='eval', **kwargs)

Execute an expression in the provided environment.

Flushes the sandbox print collector on return so any trailing print(..., end="") fragment reaches the writer instead of being discarded with the verb’s globals.