Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ca2433

Browse files
committed
SF bug #651149: Review libshelve.tex when possible
Minor fixes to markup, spelling, parameter names, and abbreviations.
1 parent 1061e72 commit 2ca2433

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/lib/libshelve.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ \section{\module{shelve} ---
4444

4545
\item
4646
The 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
4848
is available. Therefore it is not safe to open the database directly
4949
using \refmodule{dbm}. The database is also (unfortunately) subject
5050
to 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}}
7474
A 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
7676
pickles 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}}
8181
A 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
8383
available in the \module{bsddb} module but not in other database modules.
8484
The \var{dict} object passed to the constructor must support those methods.
8585
This is generally accomplished by calling one of \function{bsddb.hashopen},
@@ -88,8 +88,8 @@ \section{\module{shelve} ---
8888
class.
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
9393
object. The underlying file will be opened using \function{anydbm.open}.
9494
By default, the file will be created and opened for both read and write.
9595
The optional \var{binary} parameter has the same interpretation as for the

0 commit comments

Comments
 (0)