diff options
author | Guido van Rossum <guido@python.org> | 1995-03-17 16:07:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-17 16:07:09 (GMT) |
commit | 470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9 (patch) | |
tree | 4fd0b8eda81e63366598e55362ceac85adafccb4 /Doc/lib/libshelve.tex | |
parent | 7760cdea81166b7741561043c58dae171811fb2f (diff) | |
download | cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.zip cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.tar.gz cpython-470be14c8aa23a35a1f4d1f1260a66a85d3f3cd9.tar.bz2 |
mass changes; fix titles; add examples; correct typos; clarifications;
unified style; etc.
Diffstat (limited to 'Doc/lib/libshelve.tex')
-rw-r--r-- | Doc/lib/libshelve.tex | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/lib/libshelve.tex b/Doc/lib/libshelve.tex index 0dec230..a232add 100644 --- a/Doc/lib/libshelve.tex +++ b/Doc/lib/libshelve.tex @@ -1,7 +1,8 @@ -\section{Built-in module \sectcode{shelve}} +\section{Standard Module \sectcode{shelve}} \stmodindex{shelve} \stmodindex{pickle} \bimodindex{dbm} +\bimodindex{gdbm} A ``shelf'' is a persistent, dictionary-like object. The difference with ``dbm'' databases is that the values (not the keys!) in a shelf @@ -48,8 +49,11 @@ Dependent on the implementation, closing a persistent dictionary may or may not be necessary to flush changes to disk. \item -The \code{shelve} module does not support {\em concurrent} access to -shelved objects. Two programs should not try to simultaneously access -the same shelf. +The \code{shelve} module does not support {\em concurrent} read/write +access to shelved objects. (Multiple simultaneous read accesses are +safe.) When a program has a shelf open for writing, no other program +should have it open for reading or writing. \UNIX{} file locking can +be used to solve this, but this differs across \UNIX{} versions and +requires knowledge about the database implementation used. \end{itemize} |