[Python-Dev] Proposal: .pyc file format change

Christian Tismer tismer@tismer.com
Tue, 30 May 2000 13:24:55 +0200

Greg Stein wrote:
> I don't think we should have a two-byte magic value. Especially where
> those two bytes are printable, 7-bit ASCII.
> "But it is four bytes," you say. Nope. It is two plus a couple parameters
> that can now change over time.
> To ensure uniqueness, I think a four-byte magic should stay.
> I would recommend the approach of adding opcodes into the marshal format.
> Specifically, 'V' followed by a single byte. That can only occur at the
> beginning. If it is not present, then you know that you have an old
> marshal value.

Fine with me, too!
Everything that keeps the current 8 byte header intact
and doesn't break much code is fine with me. Moving
additional info intot he marshalled obejcts themselves
gives even more flexibility than any header extension.
Yes I'm all for it.

ciao - chris++

Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com