Title: No way to serialize interpreter state
Type: Severity: normal
Components: Core Versions: Jython 2.7, Jython 2.5
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: stepleton, zyasoft
Priority: normal Keywords:

Created on 2013-10-16.12:56:14 by stepleton, last changed 2015-04-10.02:08:38 by zyasoft.

msg8156 (view) Author: Tom Stepleton (stepleton) Date: 2013-10-16.12:56:14
I might be wrong about this, but there doesn't seem to be any way to pickle or otherwise serialize classes defined in the interpreter (admittedly this is a tricky task in CPython as well, but libraries like dill [] have some tricks that work in that setting).

This capability is desirable for allowing Jython to power an interactive parallel computing environment.
msg8157 (view) Author: Jim Baker (zyasoft) Date: 2013-10-16.15:16:19
This is an interesting feature request and doable in principle. I suppose any reworking of PySystemState, such as removing mutable statics and improving caching, should take this into account and test for the serializability of PySystemState (which does claim to be Serializable, since it extends PyObject).
msg9094 (view) Author: Jim Baker (zyasoft) Date: 2014-10-06.03:17:24
Should robustly test now that these other improvements have been made

Otherwise 2.7.1 or later
msg9786 (view) Author: Jim Baker (zyasoft) Date: 2015-04-10.02:08:38
Target 2.7.1

I added JUnit tests to test serializability in, which can be used as basis of such testing
Date User Action Args
2015-04-10 02:08:38zyasoftsetmessages: + msg9786
2014-10-07 00:15:31zyasoftsetpriority: normal
2014-10-06 03:17:24zyasoftsetmessages: + msg9094
2014-05-21 20:48:05zyasoftsetresolution: remind
2013-10-16 15:16:20zyasoftsetnosy: + zyasoft
messages: + msg8157
2013-10-16 12:56:15stepletoncreate