summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorbriancurtin <brian.curtin@gmail.com>2011-03-14 19:35:35 (GMT)
committerbriancurtin <brian.curtin@gmail.com>2011-03-14 19:35:35 (GMT)
commit94eceeb89c153d8bf77dc194f8896a66cc25519a (patch)
treeaf14d0e536dbb4b85a5dcb7a3552b1b0146450a6 /Misc
parent250324952e63a51fe885d457d207082f249bbefd (diff)
downloadcpython-94eceeb89c153d8bf77dc194f8896a66cc25519a.zip
cpython-94eceeb89c153d8bf77dc194f8896a66cc25519a.tar.gz
cpython-94eceeb89c153d8bf77dc194f8896a66cc25519a.tar.bz2
Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented, dbm.open(...,flag='n') will now "Always create a new, empty database, open for reading and writing", regardless of a previous file existing.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS4
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index a18dd18..c95e76d 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -154,6 +154,7 @@ Terrence Cole
Benjamin Collar
Jeffery Collins
Paul Colomiets
+Denver Coneybeare
Matt Conway
David M. Cooke
Greg Copeland
diff --git a/Misc/NEWS b/Misc/NEWS
index 9eb0537..37b2477 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -40,6 +40,10 @@ Core and Builtins
Library
-------
+- Issue #11491: dbm.error is no longer raised when dbm.open is called with
+ the "n" as the flag argument and the file exists. The behavior matches
+ the documentation and general logic.
+
- Issue #11131: Fix sign of zero in decimal.Decimal plus and minus
operations when the rounding mode is ROUND_FLOOR.