mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
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.
This commit is contained in:
parent
a5c0998242
commit
fc1f64d90d
1 changed files with 4 additions and 5 deletions
|
@ -34,12 +34,11 @@ implementations.
|
||||||
|
|
||||||
The open function has an optional second argument. This can be 'r',
|
The open function has an optional second argument. This can be 'r',
|
||||||
for read-only access, 'w', for read-write access of an existing
|
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
|
database, 'c' for read-write access to a new or existing database, and
|
||||||
default is 'r'.
|
'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
|
Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
|
||||||
database doesn't already exist. There appears to be no difference
|
only if it doesn't exist; and 'n' always creates a new database.
|
||||||
between 'n' and 'c'.
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue