shelve: writing out updates?!

phil hunt zen19725 at zen.co.uk
Sun Jul 31 07:32:35 CEST 2005


On 30 Jul 2005 17:48:39 -0700, Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
>Shelve uses dbm and pickle to make a persistent object store.  The
>"db" in "dbm" stands for "database" and while I didn't expect full
>ACID capability,

What is ACID?

> I'd have thought there'd be at least some minimum
>gesture towards durability of updates.  But say that s is a shelve
>object.  If I say
>
>   s[whatever] = value
>
>there is no way apparent from the shelve docs to get the update
>flushed out to the disk file until the shelve is actually closed.

Wierd. I'd expect something like an s.flush() function.


-- 
Email: zen19725 at zen dot co dot uk





More information about the Python-list mailing list