Пример #1
0
 /** Execute a Python code object in the local namespace */
 public void exec(PyObject code) {
   setState();
   Py.exec(code, locals, locals);
   Py.flushLine();
 }
Пример #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();
 }