-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/13/2012 06:49 PM, Nick Coghlan wrote: > On Wed, Mar 14, 2012 at 8:08 AM, Guido van Rossum <gu...@python.org> > wrote: >> If you can solve your problem with a suitably hacked Unpickler >> subclass that's fine with me, but I would personally use this >> opportunity to change the app to some other serialization format >> that is perhaps less general but more robust than pickle. I've been >> bitten by too many pickle-related problems to recommend pickle to >> anyone... > > It's fine for in-memory storage of (almost) arbitrary objects (I use > it to stash things in a memory backed sqlite DB via SQLAlchemy) and > for IPC, but yeah, for long-term cross-version persistent storage, > I'd be looking to something like JSON rather than pickle.
Note the Zope ecosystem (including Plone) is an *enoromous* installed base[1] using pickle for storage of data over many years and multiple versions of Python: until this point, it has always been possible to arrange for old pickles to work (e.g., by providing aliases for missing module names, etc.). ]1] tens of thousands of Zope-based sites in production, including very high-profile ones: http://plone.org/support/sites Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9ixhEACgkQ+gerLs4ltQ7hUwCfSdjbGnIIrNr6sxoztvb3pvx5 Ns0An1GmcYHClvsgx22bdru5Hl+G09nx =sm0/ -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com