Package pyraf :: Module dirshelve
[hide private]
[frames] | no frames]

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

Classes [hide private]
  Shelf
Extension of Shelf using binary pickling
  DirectoryShelf
Shelf implementation using the directory db interface.
Functions [hide private]
 
open(filename, flag='c')
Open a persistent dictionary for reading and writing.
source code
Variables [hide private]
  error = dirdbm.error,

Imports: dirdbm, shelve


Function Details [hide private]

open(filename, flag='c')

source code 

Open a persistent dictionary for reading and writing.

Argument is the filename for the dirdbm database.