@@ -44,7 +44,7 @@ \section{\module{shelve} ---
4444
4545\item
4646The choice of which database package will be used
47- (e.g. \refmodule {dbm} or \refmodule {gdbm}) depends on which interface
47+ (such as \refmodule {dbm} or \refmodule {gdbm}) depends on which interface
4848is available. Therefore it is not safe to open the database directly
4949using \refmodule {dbm}. The database is also (unfortunately) subject
5050to the limitations of \refmodule {dbm}, if it is used --- this means
@@ -72,14 +72,14 @@ \section{\module{shelve} ---
7272
7373\begin {classdesc }{Shelf}{dict\optional {, binary=False}}
7474A subclass of \class {UserDict.DictMixin} which stores pickled values in the
75- \var {dict} object. If the \var {binary} parameter is \constant {True}, binary
75+ \var {dict} object. If the \var {binary} parameter is \code {True}, binary
7676pickles will be used. This can provide much more compact storage than plain
77- text pickles, depending on the nature of the objects stored in the databse .
77+ text pickles, depending on the nature of the objects stored in the database .
7878\end {classdesc }
7979
8080\begin {classdesc }{BsdDbShelf}{dict\optional {, binary=False}}
8181A subclass of \class {Shelf} which exposes \method {first}, \method {next},
82- {} \method {previous}, \method {last} and \method {set_location} which are
82+ \method {previous}, \method {last} and \method {set_location} which are
8383available in the \module {bsddb} module but not in other database modules.
8484The \var {dict} object passed to the constructor must support those methods.
8585This is generally accomplished by calling one of \function {bsddb.hashopen},
@@ -88,8 +88,8 @@ \section{\module{shelve} ---
8888class.
8989\end {classdesc }
9090
91- \begin {classdesc }{DbfilenameShelf}{dict \optional {, flag='c'} \optional {, binary=False}}
92- A subclass of \class {Shelf} which accepts a filename instead of a dict-like
91+ \begin {classdesc }{DbfilenameShelf}{filename \optional {, flag='c'\optional {, binary=False} }}
92+ A subclass of \class {Shelf} which accepts a \var { filename} instead of a dict-like
9393object. The underlying file will be opened using \function {anydbm.open}.
9494By default, the file will be created and opened for both read and write.
9595The optional \var {binary} parameter has the same interpretation as for the
0 commit comments