]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add (dummy) mode arg to open()
authorGuido van Rossum <guido@python.org>
Fri, 1 Sep 1995 22:55:11 +0000 (22:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 1 Sep 1995 22:55:11 +0000 (22:55 +0000)
Mac/Lib/dbmac.py

index 1f15ebe41202c3a53c2048540be693e9133bc7b0..0588dbd90ee7ef167bc87a7ecd9e1eca805e2be9 100644 (file)
@@ -14,6 +14,9 @@ updates, they can mess up the index)
 
 - support efficient access to large databases (currently, the whole index
 is read when the database is opened, and some updates rewrite the whole index)
+
+- support opening for read-only (flag = 'm')
+
 """
 
 _os = __import__('os')
@@ -132,5 +135,6 @@ class _Database:
                self._index = self._datfile = self._dirfile = self._bakfile = None
 
 
-def open(file, mode = None):
+def open(file, flag = None, mode = None):
+       # flag, mode arguments are currently ignored
        return _Database(file)