]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that the flag and mode arguments to dumbdbm.open() are ignored.
authorFred Drake <fdrake@acm.org>
Fri, 7 Dec 2001 21:59:56 +0000 (21:59 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 7 Dec 2001 21:59:56 +0000 (21:59 +0000)
Doc/lib/libanydbm.tex

index 367daf6ed9371cc5b8b02a392950fbb079f4127e..2718936feaf79ee8413cf3c327b0cd002be1d6fb 100644 (file)
@@ -72,17 +72,13 @@ should only be used when no other DBM-style database is available.
 
 
 \begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
-Open the database file \var{filename} and return a corresponding object.
-The optional \var{flag} argument can be
-\code{'r'} to open an existing database for reading only,
-\code{'w'} to open an existing database for reading and writing,
-\code{'c'} to create the database if it doesn't exist, or
-\code{'n'}, which will always create a new empty database.  If not
-specified, the default value is \code{'r'}.
+Open the database file \var{filename} and return a corresponding
+object.  The \var{flag} argument, used to control how the database is
+opened in the other DBM implementations, is ignored in
+\module{dumbdbm}; the database is always opened for update, and will
+be created if it does not exist.
 
-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
-\code{0666} (and will be modified by the prevailing umask).
+The optional \var{mode} argument is ignored.
 \end{funcdesc}
 
 \begin{excdesc}{error}