diff options
author | Guido van Rossum <guido@python.org> | 1995-08-11 14:18:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-11 14:18:27 (GMT) |
commit | e03a86c3d90a3cc81c5985f22000c7ecf7396135 (patch) | |
tree | 79dcdadee2235f99099ba4eabc68d0c4475b8624 /Lib | |
parent | 1035a892a140a7dc7b59f016230db02b490885d0 (diff) | |
download | cpython-e03a86c3d90a3cc81c5985f22000c7ecf7396135.zip cpython-e03a86c3d90a3cc81c5985f22000c7ecf7396135.tar.gz cpython-e03a86c3d90a3cc81c5985f22000c7ecf7396135.tar.bz2 |
change default flag to match dbm/gdbm
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/anydbm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/anydbm.py b/Lib/anydbm.py index a3451f5..72dd195 100644 --- a/Lib/anydbm.py +++ b/Lib/anydbm.py @@ -31,8 +31,8 @@ decide which module to use based upon the extension or contents of an existing database file. The open function has an optional second argument. This can be set to -'r' to open the database for reading only. The default is 'w', which -differs from the dbm default ('r') for historic reasons. +'r' to open the database for reading only. The default is 'r', like +the dbm default. """ @@ -47,5 +47,5 @@ for _name in _names: break else: raise ImportError, "no dbm clone found; tried %s" % _names -def open(file, flag = 'w', mode = 0666): +def open(file, flag = 'r', mode = 0666): return _mod.open(file, flag, mode) |