Commit e5d5f6a1 authored by Fred Drake's avatar Fred Drake

Revise description of dumbdbm.open() to reflect that the flag argument is

ignored and that mode was ignored before Python 2.2.
This closes SF bug #490098.
parent e4467b7c
...@@ -71,17 +71,17 @@ should only be used when no other DBM-style database is available. ...@@ -71,17 +71,17 @@ should only be used when no other DBM-style database is available.
\begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}} \begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
Open the database file \var{filename} and return a corresponding object. Open the database file \var{filename} and return a corresponding
The optional \var{flag} argument can be object. The \var{flag} argument, used to control how the database is
\code{'r'} to open an existing database for reading only, opened in the other DBM implementations, is ignored in
\code{'w'} to open an existing database for reading and writing, \module{dumbdbm}; the database is always opened for update, and will
\code{'c'} to create the database if it doesn't exist, or be created if it does not exist.
\code{'n'}, which will always create a new empty database. If not
specified, the default value is \code{'r'}.
The optional \var{mode} argument is the \UNIX{} mode of the file, used The optional \var{mode} argument is the \UNIX{} mode of the file, used
only when the database has to be created. It defaults to octal only when the database has to be created. It defaults to octal
\code{0666} (and will be modified by the prevailing umask). \code{0666} (and will be modified by the prevailing umask).
\versionchanged[The \var{mode} argument was ignored in earlier
versions]{2.2}
\end{funcdesc} \end{funcdesc}
\begin{excdesc}{error} \begin{excdesc}{error}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment