pickle, marshal, ?

Erik Max Francis max at alcyone.com
Wed May 28 15:33:14 EDT 2003


Max Khesin wrote:

> pickle is introduced as very fast but version dependent can for simple
> data
> structures only. marshal is relatively slow but version-independent
> and
> supports complex data structures. I am looking for something that is
> version-independent but trades off data structure complexity for speed
> - it
> only needs to do lists, dictionaris & strings.

Sounds like you have these reversed.  pickle is the one that's
version-independent; marshal is the one that's explicitly documented as
"Details of the format are undocumented on purpose; it may change
between Python versions (although it rarely does)."

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Your theory is not right; it is not even wrong.
\__/  Wolfgang Pauli




More information about the Python-list mailing list