From: Guido van Rossum Date: Tue, 28 Apr 1998 15:23:09 +0000 (+0000) Subject: Oops, I had 'n' and 'c' mixed up in my mind. Get rid of the comment X-Git-Tag: v1.5.2a1~803 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93;p=thirdparty%2FPython%2Fcpython.git Oops, I had 'n' and 'c' mixed up in my mind. Get rid of the comment that wonders what the difference is and explain them properly. --- diff --git a/Lib/anydbm.py b/Lib/anydbm.py index ef913bbcd334..cb43a9318cb0 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -34,12 +34,11 @@ implementations. 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. """