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

Skip to content

Commit 7961930

Browse files
committed
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.
1 parent 2c8373b commit 7961930

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/lib/libanydbm.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ \section{\module{dumbdbm} ---
7171

7272

7373
\begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
74-
Open the database file \var{filename} and return a corresponding object.
75-
The optional \var{flag} argument can be
76-
\code{'r'} to open an existing database for reading only,
77-
\code{'w'} to open an existing database for reading and writing,
78-
\code{'c'} to create the database if it doesn't exist, or
79-
\code{'n'}, which will always create a new empty database. If not
80-
specified, the default value is \code{'r'}.
74+
Open the database file \var{filename} and return a corresponding
75+
object. The \var{flag} argument, used to control how the database is
76+
opened in the other DBM implementations, is ignored in
77+
\module{dumbdbm}; the database is always opened for update, and will
78+
be created if it does not exist.
8179

8280
The optional \var{mode} argument is the \UNIX{} mode of the file, used
8381
only when the database has to be created. It defaults to octal
8482
\code{0666} (and will be modified by the prevailing umask).
83+
\versionchanged[The \var{mode} argument was ignored in earlier
84+
versions]{2.2}
8585
\end{funcdesc}
8686

8787
\begin{excdesc}{error}

0 commit comments

Comments
 (0)