[Python-3000] Marshal Version and Pickle Protocols

Barry Warsaw barry at python.org
Thu Apr 12 19:38:57 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 12, 2007, at 1:34 PM, Guido van Rossum wrote:

> On 4/12/07, Barry Warsaw <barry at python.org> wrote:
>> On Apr 12, 2007, at 12:57 PM, Guido van Rossum wrote:
>>
>> > On 4/12/07, Raymond Hettinger <python at rcn.com> wrote:
>> >> Can we drop the old protocols?
>> >
>> > I'd like to keep supporting the old pickle for data
>> > interchangeability, but default to pickle protocol 2, which has  
>> been
>> > supported by Python for several versions.
>>
>> +1, certainly for reading.
>
> Duh. For reading you don't need to specify a protocol, it finds out
> based on what it reads. The default is only necessary for writing.

I was actually responding to what I thought Raymond was suggesting,  
but never mind, because I agree with you!

>> I wouldn't care too much if only protocol
>> 2 is supported for writing new pickles, but I'm probably -0 on
>> removing protocol 0 and 1 for writing.
>
> That is exactly my proposal.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRh5usnEjvBPtnXfVAQIWTAQApdlQAEORnFF3G6qswpFECC34EH+IsnVA
kqr1m/PlpLLxAc7PBKtUMuanxHb/i2XjGwkB2d9DOsya9vTg4KNAyDCIC9rFMkz2
B7db40JfyA63tIekZaiOO4llYIr18VFQHxy0Uuo1aQFKQ3vqyDIuS2k0EZ59c+wq
oJzUT2JlqbU=
=hHUb
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list