Skip to content

Commit

Permalink
Oops, I had 'n' and 'c' mixed up in my mind. Get rid of the comment
Browse files Browse the repository at this point in the history
that wonders what the difference is and explain them properly.
  • Loading branch information
gvanrossum committed Apr 28, 1998
1 parent a5c0998 commit fc1f64d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Lib/anydbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
The open function has an optional second argument. This can be 'r',
for read-only access, 'w', for read-write access of an existing
database, 'n' or 'c' for read-write access to a new database. The
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'.
Note: the difference between 'w' and 'n' is that 'w' fails if the
database doesn't already exist. There appears to be no difference
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.
"""

Expand Down

0 comments on commit fc1f64d

Please sign in to comment.