[mod_python] The python shelve

Mike Bell mike at mikebell.org
Tue Aug 14 22:24:03 EST 2001

On Tue, Aug 14, 2001 at 02:26:55PM +0200, riesch at nieuw.nl wrote:
> On 'd = shelve.open("filename")', will all the classes stored in the
> shelve be loaded into the memory ? This is namely not what I want. Only
> those classes I need should be loaded.
No, they shouldn't be. It's just regular *dbm with pickled python objects in
the values. One thing you will want to be careful of when using it though is
locking, since you'll have many apache processes each running their own copy
of the mod_python script, you could easily run into corruption if you don't
lock the file correctly.

More information about the Mod_python mailing list