storing pickles in sql data base

Marc 'BlackJack' Rintsch bj_666 at
Thu Jul 12 08:00:59 CEST 2007

On Wed, 11 Jul 2007 17:14:43 -0500, Chris Mellon wrote:

> [pickle]
> Protocol 0 (the default) is a text protocol, it's safe to store in a
> text field or write to a text file.

It's not really a text protocol it's more a binary protocol that uses just
the ASCII range of byte values.  You have to write and read the "text"
files in binary mode or they break if taken across platform boundaries
because of the different line endings in Linux and Windows for instance.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list