storing pickles in sql data base

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Jul 12 21:26:51 EDT 2007


En Thu, 12 Jul 2007 14:18:11 -0300, Chris Mellon <arkanes at gmail.com>  
escribió:

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

Neither. Won't work for Unicode objects then. See bug#1724366  
<http://python.org/sf/1724366>

-- 
Gabriel Genellina




More information about the Python-list mailing list