From: Alan K. <re...@bu...> - 2008-11-18 19:40:08
|
New submission from Alan Kennedy <jyt...@xh...>: The following snippet causes an NPE in the 2.5b0. This code should work, unless there's been an undocumented change in the PythonInterpreter API? // EvalBug.java import org.python.core.*; import org.python.util.*; public class EvalBug { public static void main (String [] args) { PythonInterpreter.initialize(System.getProperties(), null, new String[] {}); PythonInterpreter interp = new PythonInterpreter(); PyObject pyo = interp.eval("{u'one': u'two'}"); System.out.println("Result is : " + pyo); } } ---------- components: Core messages: 3787 nosy: amak severity: major status: open title: NPE on PythonInterpreter.eval() type: crash versions: 2.5b0 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1174> _______________________________________ |