storing pickles in sql data base

Chris Mellon arkanes at gmail.com
Thu Jul 12 13:18:11 EDT 2007


On 12 Jul 2007 06:00:59 GMT, Marc 'BlackJack' Rintsch <bj_666 at gmx.net> wrote:
> 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.
>

It's fine as long as you use universal line endings mode.



More information about the Python-list mailing list