Message5737
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(); |
|
Date |
User |
Action |
Args |
2010-04-18 21:35:18 | tlocke | set | recipients:
+ tlocke |
2010-04-18 21:35:18 | tlocke | set | messageid: <1271626518.67.0.984353532896.issue1601@psf.upfronthosting.co.za> |
2010-04-18 21:35:18 | tlocke | link | issue1601 messages |
2010-04-18 21:35:17 | tlocke | create | |
|