]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
added list of restrictions
authorGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:29:01 +0000 (16:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 16 Feb 1995 16:29:01 +0000 (16:29 +0000)
Doc/lib/libshelve.tex
Doc/libshelve.tex

index 3e2bef930371070be8bfb72ea5b93199757998ca..0dec23062071f5fa88f7be99c6f93899e24b6bb1 100644 (file)
@@ -30,9 +30,26 @@ list = d.keys() # a list of all existing keys (slow!)
 d.close()       # close it
 \end{verbatim}
 
+Restrictions:
+
+\begin{itemize}
+
+\item
+The choice of which database package will be used (e.g. dbm or gdbm)
+depends on which interface is available.  Therefore it isn't safe to
+open the database directly using dbm.  The database is also
+(unfortunately) subject to the limitations of dbm, if it is used ---
+this means that (the pickled representation of) the objects stored in
+the database should be fairly small, and in rare cases key collisions
+may cause the database to refuse updates.
+
+\item
 Dependent on the implementation, closing a persistent dictionary may
 or may not be necessary to flush changes to disk.
 
-Note: \code{shelve} does not support {\em concurrent} access to
+\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.
+
+\end{itemize}
index 3e2bef930371070be8bfb72ea5b93199757998ca..0dec23062071f5fa88f7be99c6f93899e24b6bb1 100644 (file)
@@ -30,9 +30,26 @@ list = d.keys() # a list of all existing keys (slow!)
 d.close()       # close it
 \end{verbatim}
 
+Restrictions:
+
+\begin{itemize}
+
+\item
+The choice of which database package will be used (e.g. dbm or gdbm)
+depends on which interface is available.  Therefore it isn't safe to
+open the database directly using dbm.  The database is also
+(unfortunately) subject to the limitations of dbm, if it is used ---
+this means that (the pickled representation of) the objects stored in
+the database should be fairly small, and in rare cases key collisions
+may cause the database to refuse updates.
+
+\item
 Dependent on the implementation, closing a persistent dictionary may
 or may not be necessary to flush changes to disk.
 
-Note: \code{shelve} does not support {\em concurrent} access to
+\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.
+
+\end{itemize}