Ejemplo n.º 1
0
 /** Execute a Python code object in the local namespace */
 public void exec(PyObject code) {
   setState();
   Py.exec(code, locals, locals);
   Py.flushLine();
 }
Ejemplo n.º 2
0
 /** 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();
 }