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

Skip to content

Commit b3b22f3

Browse files
author
Skip Montanaro
committed
flesh out open() docstring
1 parent 1f7a271 commit b3b22f3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Lib/shelve.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,13 @@ def __init__(self, filename, flag='c', binary=False):
157157
def open(filename, flag='c', binary=False):
158158
"""Open a persistent dictionary for reading and writing.
159159
160-
Argument is the filename for the dbm database.
160+
The filename parameter is the base filename for the underlying database.
161+
As a side-effect, an extension may be added to the filename and more
162+
than one file may be created. The optional flag parameter has the
163+
same interpretation as the flag parameter of anydbm.open(). The
164+
optional binary parameter may be set to True to force the use of binary
165+
pickles for serializing data values.
166+
161167
See the module's __doc__ string for an overview of the interface.
162168
"""
163169

0 commit comments

Comments
 (0)