summaryrefslogtreecommitdiffstats
path: root/Doc/libshelve.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/libshelve.tex')
-rw-r--r--Doc/libshelve.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/libshelve.tex b/Doc/libshelve.tex
index a232add..05b3a93 100644
--- a/Doc/libshelve.tex
+++ b/Doc/libshelve.tex
@@ -1,4 +1,5 @@
\section{Standard Module \sectcode{shelve}}
+\label{module-shelve}
\stmodindex{shelve}
\stmodindex{pickle}
\bimodindex{dbm}
@@ -14,7 +15,7 @@ sub-objects. The keys are ordinary strings.
To summarize the interface (\code{key} is a string, \code{data} is an
arbitrary object):
-\begin{verbatim}
+\bcode\begin{verbatim}
import shelve
d = shelve.open(filename) # open, with (g)dbm filename -- no suffix
@@ -29,8 +30,8 @@ flag = d.has_key(key) # true if the key exists
list = d.keys() # a list of all existing keys (slow!)
d.close() # close it
-\end{verbatim}
-
+\end{verbatim}\ecode
+%
Restrictions:
\begin{itemize}