Message3787

Author amak
Recipients amak
Date 2008-11-18.19:40:02
SpamBayes Score 3.487666e-09
Marked as misclassified No
Message-id <1227037203.07.0.77691681659.issue1174@psf.upfronthosting.co.za>
In-reply-to
Content
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);
  }
}
History
Date User Action Args
2008-11-18 19:40:04amaksetrecipients: + amak
2008-11-18 19:40:03amaksetmessageid: <1227037203.07.0.77691681659.issue1174@psf.upfronthosting.co.za>
2008-11-18 19:40:02amaklinkissue1174 messages
2008-11-18 19:40:02amakcreate