diff options
author | Guido van Rossum <guido@python.org> | 1998-04-28 15:23:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-28 15:23:09 (GMT) |
commit | fc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93 (patch) | |
tree | f4068192e030eea219d256d89ec61dd62d081554 /Lib | |
parent | a5c09982421414b10753b3c698fcbc65efdff0eb (diff) | |
download | cpython-fc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93.zip cpython-fc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93.tar.gz cpython-fc1f64d90d1daa3fb4e4efdc8034c6fcbbf0dd93.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/anydbm.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py index ef913bb..cb43a93 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. """ |