Fix bug #422702: Make flag argument to open optional, and document it that way.

This commit is contained in:
Martin v. Löwis 2001-06-05 05:33:19 +00:00
parent 2750bcc2d1
commit e24fef0dd2
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ This module provides an exception and a function:
\exception{KeyError}. It is a synonym for \exception{bsddb.error}.
\end{excdesc}
\begin{funcdesc}{open}{path, flag\optional{, mode}}
\begin{funcdesc}{open}{path, \optional{, flag\optional{, mode}}}
Open a \code{db} database and return the database object. The
\var{path} argument is the name of the database file.

View File

@ -12,5 +12,5 @@ __all__ = ["error","open"]
error = bsddb.error # Exported for anydbm
def open(file, flag, mode=0666):
def open(file, flag = 'r', mode=0666):
return bsddb.hashopen(file, flag, mode)