[Python-Dev] Pickle alternative in stdlib (Was: On breaking modules into packages)
Guido van Rossum
guido at python.org
Thu Nov 4 15:51:17 CET 2010
> On Wed, Nov 3, 2010 at 9:08 PM, Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:
>> This is the strongest reason why I recommend to everyone I know that they
>> not use pickle for storage they'd like to keep working after upgrades [not
>> just of stdlib, but other 3rd party software or their own software]. :)
>>
>> +1.
>> Twisted actually tried to preserve pickle compatibility in the bad old days,
>> but it was impossible. Pickles should never really be saved to disk unless
>> they contain nothing but lists, ints, strings, and dicts.
But *that* set of types can safely be marshalled using the marshal module...
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list