[Python-3000] Marshal Version and Pickle Protocols

Guido van Rossum guido at python.org
Thu Apr 12 19:34:52 CEST 2007


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 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.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list