Torsten Anders a écrit :
Hi,

On Aug 19, 2008, at 10:24 AM, Torsten Anders wrote:
On Aug 19, 2008, at 9:39 AM, Yves Jaradin wrote:
Torsten Anders a écrit :
Are the pickles of Mozart 1.3.* and 1.4.* incompatible?
Yes they are incompatible.


I have been repeatedly been bitten by this issue meanwhile. Is there any design reason for this incompatibility?
Partially.
The marshaller is common to the pickling subsystem and the distribution subsystem. Because of the large changes in the distribution subsystem in 1.4.0, the marshaller version had to be bumped wich, as a side effect, made the pickles incompatible. I think most, if not all, 1.3.2 pickles could be used in 1.4.0 if it wasn't for the format version (two bytes in the first few of the pickle). But the other way there will be some problems (e.g. if you pickled sites).
Or would it be an option to make pickles compatible across future releases?
In general, this would require keeping code corresponding to all the revisions of the marshaller in the marshalling/unmarshalling procedures which would make them less readable and more bug-prone as they are now. An option for converting old pickles is probably to pass them by the text pickle format (using the old pickle2text and the new text2pickle) which is supposedly more robust to version changes.

Thank you!

Best
Torsten

Yves
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-586219
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de


_________________________________________________________________________________ mozart-users mailing list [email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to