27 Jun
2004
27 Jun
'04
11:55 a.m.
Guido van Rossum wrote:
The change is backwards-compatible in the sense that existing files can be unmarshalled just fine. Problems will only arise if new marshal output is unmarshalled by old versions, which could be solved with an option during marshalling.
Works for me. Make sure to update py_compile.py.
I have made that change now. In the process, I have changed the magic, and introduced a marshal version number. marshal.dumps? now expects an optional version number, which, if ommitted, defaults to the current version (i.e. 1); older versions need to be specified explicitly. Regards, Martin