@@ -13,7 +13,7 @@ \section{\module{shelve} ---
1313sub-objects. The keys are ordinary strings.
1414\refstmodindex {pickle}
1515
16- \begin {funcdesc }{open}{filename\optional {,flag='c'\optional {,protocol=\code {None}\optional {,writeback=\code {False}\optional {,binary= \code {None}} }}}}
16+ \begin {funcdesc }{open}{filename\optional {,flag='c'\optional {,protocol=\code {None}\optional {,writeback=\code {False}}}}}
1717Open a persistent dictionary. The filename specified is the base filename
1818for the underlying database. As a side-effect, an extension may be added to
1919the filename and more than one file may be created. By default, the
@@ -24,8 +24,7 @@ \section{\module{shelve} ---
2424By default, version 0 pickles are used to serialize values.
2525The version of the pickle protocol can be specified with the
2626\var {protocol} parameter. \versionchanged [The \var {protocol}
27- parameter was added. The \var {binary} parameter is deprecated
28- and provided for backwards compatibility only]{2.3}
27+ parameter was added]{2.3}
2928
3029By default, mutations to persistent-dictionary mutable entries are not
3130automatically written back. If the optional \var {writeback} parameter
@@ -76,24 +75,23 @@ \subsection{Restrictions}
7675
7776\end {itemize }
7877
79- \begin {classdesc }{Shelf}{dict\optional {, protocol=None\optional {, writeback=False\optional {, binary=None} }}}
78+ \begin {classdesc }{Shelf}{dict\optional {, protocol=None\optional {, writeback=False}}}
8079A subclass of \class {UserDict.DictMixin} which stores pickled values in the
8180\var {dict} object.
8281
8382By default, version 0 pickles are used to serialize values. The
8483version of the pickle protocol can be specified with the
8584\var {protocol} parameter. See the \module {pickle} documentation for a
8685discussion of the pickle protocols. \versionchanged [The \var {protocol}
87- parameter was added. The \var {binary} parameter is deprecated and
88- provided for backwards compatibility only]{2.3}
86+ parameter was added]{2.3}
8987
9088If the \var {writeback} parameter is \code {True}, the object will hold a
9189cache of all entries accessed and write them back to the \var {dict} at
9290sync and close times. This allows natural operations on mutable entries,
9391but can consume much more memory and make sync and close take a long time.
9492\end {classdesc }
9593
96- \begin {classdesc }{BsdDbShelf}{dict\optional {, protocol=None\optional {, writeback=False\optional {, binary=None} }}}
94+ \begin {classdesc }{BsdDbShelf}{dict\optional {, protocol=None\optional {, writeback=False}}}
9795
9896A subclass of \class {Shelf} which exposes \method {first},
9997\method {next}, \method {previous}, \method {last} and
@@ -102,19 +100,19 @@ \subsection{Restrictions}
102100the constructor must support those methods. This is generally
103101accomplished by calling one of \function {bsddb.hashopen},
104102\function {bsddb.btopen} or \function {bsddb.rnopen}. The optional
105- \var {protocol}, \var {writeback}, and \var {binary } parameters have the
103+ \var {protocol} and \var {writeback } parameters have the
106104same interpretation as for the \class {Shelf} class.
107105
108106\end {classdesc }
109107
110- \begin {classdesc }{DbfilenameShelf}{filename\optional {, flag='c'\optional {, protocol=None\optional {, writeback=False\optional {, binary=None} }}}}
108+ \begin {classdesc }{DbfilenameShelf}{filename\optional {, flag='c'\optional {, protocol=None\optional {, writeback=False}}}}
111109
112110A subclass of \class {Shelf} which accepts a \var {filename} instead of
113111a dict-like object. The underlying file will be opened using
114112{}\function {anydbm.open}. By default, the file will be created and
115113opened for both read and write. The optional \var {flag} parameter has
116114the same interpretation as for the \function {open} function. The
117- optional \var {protocol}, \var {writeback}, and \var {binary } parameters
115+ optional \var {protocol} and \var {writeback } parameters
118116have the same interpretation as for the \class {Shelf} class.
119117
120118\end {classdesc }
0 commit comments