[Python-Dev] Python startup time: String objects

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 27 12:55:10 EDT 2004


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




More information about the Python-Dev mailing list