shelve vs pickle

Piet van Oostrum piet at cs.uu.nl
Sat Sep 15 13:29:15 EDT 2001


>>>>> Sheila King <sheila at spamcop.net> (SK) writes:

SK> On Sat, 15 Sep 2001 00:35:36 -0600 (MDT), kosh at aesaeion.com wrote in
SK> comp.lang.python in article
SK> <mailman.1000535778.24140.python-list at python.org>:

SK> :What you might want to consider is using the ZODB. It is the object
SK> :database that backs zope but it can be used seperately from it easily. It
SK> :would give you transactions on your objects, rollbacks, version locking
SK> :etc. Overall I seems better then either shelve or pickle are by default.
SK> :Overall the ZODB is pretty lightweight and seems to run pretty fast.
SK> :Overall I see the ZODB as largely replacing what shelve does.

SK> Doesn't using ZODB require using some sort of server (database server
SK> and/or web server?)?

Not if you use the database only from 1 program at the same time. It is
just a collection of modules that you use in your own program.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list