/** Execute a Python code object in the local namespace */ public void exec(PyObject code) { setState(); Py.exec(code, locals, locals); Py.flushLine(); }
/** Execute a string of Python source in the local namespace */ public void exec(String s) { setState(); Py.exec(Py.compile_flags(s, "<string>", "exec", cflags), locals, locals); Py.flushLine(); }