Message5737

Author tlocke
Recipients tlocke
Date 2010-04-18.21:35:17
SpamBayes Score 1.1220756e-07
Marked as misclassified No
Message-id <1271626518.67.0.984353532896.issue1601@psf.upfronthosting.co.za>
In-reply-to
Content
The PyCode class implements Serializable, but on attempting to serialize a PyCode object I get java.io.NotSerializableException: org.python.core.CompilerFlags

Here's some code that will reproduce the problem:

PythonInterpreter interp = new PythonInterpreter();
PyCode code = interp.compile("jython_rocks = True");
ObjectOutputStream ow = new ObjectOutputStream(new
FileOutputStream(File.createTempFile("compscript", null)));
ow.writeObject(code);
ow.close();
History
Date User Action Args
2010-04-18 21:35:18tlockesetrecipients: + tlocke
2010-04-18 21:35:18tlockesetmessageid: <1271626518.67.0.984353532896.issue1601@psf.upfronthosting.co.za>
2010-04-18 21:35:18tlockelinkissue1601 messages
2010-04-18 21:35:17tlockecreate