[Python-3000] Marshal Version and Pickle Protocols

Robert Brewer fumanchu at amor.org
Thu Apr 12 19:25:05 CEST 2007


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.

I still use pickle protocol 0, since it does not output \x00 like
protocols 1 and 2. Some databases either don't provide a way to escape
\x00 in SQL statements, or have nasty bugs when comparing or operating
on string values with \x00 in them.


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org


More information about the Python-3000 mailing list