Module dirshelve
source code
Version of shelve that uses files in a directory with binary pickle
format
Allows simultaneous read-write access to the data since the OS allows
multiple processes to have access to the file system.
$Id: dirshelve.py 678 2005-07-01 21:19:43Z perry $
XXX keys, len may be incorrect if directory database is modified XXX
by another process after open
R. White, 2000 Sept 26
|
|
Shelf
Extension of Shelf using binary pickling
|
|
|
DirectoryShelf
Shelf implementation using the directory db interface.
|
|
|
open(filename,
flag='c')
Open a persistent dictionary for reading and writing. |
source code
|
|
Imports:
dirdbm,
shelve
|
Open a persistent dictionary for reading and writing.
Argument is the filename for the dirdbm database.
|