Skip to content
Derek J Griffith edited this page May 6, 2015 · 7 revisions

MORTICIA would benefit from a robust yet simple object persistence scheme.

There are potential issues with using pickle in development. From https://wiki.python.org/moin/UsingPickle: Pickles can cause problems if you save a pickle, then update your code and read the pickle in. Attribute added to your init may not be present in the unpickled object; also, if pickle can't find your class and module (e.g., if you renamed the module) you will get errors. For this reason, you should be wary of using pickles for long-term storage where the underlying code is not highly stable.

Another useful article on object persistence: http://www.ibm.com/developerworks/library/l-pypers/

Other alternatives:

ZODB : http://old.zope.org/Products/StandaloneZODB/

Here is a good IBM article on ZODB : http://www.ibm.com/developerworks/aix/library/au-zodb/

Pypersist : http://sourceforge.net/projects/pypersyst/

Clone this wiki locally