Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c0998 commit fc1f64dCopy full SHA for fc1f64d
1 file changed
Lib/anydbm.py
@@ -34,12 +34,11 @@
34
35
The open function has an optional second argument. This can be 'r',
36
for read-only access, 'w', for read-write access of an existing
37
-database, 'n' or 'c' for read-write access to a new database. The
38
-default is 'r'.
+database, 'c' for read-write access to a new or existing database, and
+'n' for read-write access to a new database. The default is 'r'.
39
40
-Note: the difference between 'w' and 'n' is that 'w' fails if the
41
-database doesn't already exist. There appears to be no difference
42
-between 'n' and 'c'.
+Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
+only if it doesn't exist; and 'n' always creates a new database.
43
44
"""
45
0 commit comments