Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e24fef0d
Commit
e24fef0d
authored
Jun 05, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug #422702: Make flag argument to open optional, and document it that way.
parent
2750bcc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/lib/libdbhash.tex
Doc/lib/libdbhash.tex
+1
-1
Lib/dbhash.py
Lib/dbhash.py
+1
-1
No files found.
Doc/lib/libdbhash.tex
View file @
e24fef0d
...
...
@@ -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.
...
...
Lib/dbhash.py
View file @
e24fef0d
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment