diff options
author | briancurtin <brian.curtin@gmail.com> | 2011-03-14 20:03:54 (GMT) |
---|---|---|
committer | briancurtin <brian.curtin@gmail.com> | 2011-03-14 20:03:54 (GMT) |
commit | 525c25d42f8740111d14b9f8ca56cc2762175eaf (patch) | |
tree | c5ba27fca894c9a4fb455c0ada32eb1d004cc950 /Misc | |
parent | d9a7c4b8e56ddf8be878de284b8a29d4346ec0f8 (diff) | |
download | cpython-525c25d42f8740111d14b9f8ca56cc2762175eaf.zip cpython-525c25d42f8740111d14b9f8ca56cc2762175eaf.tar.gz cpython-525c25d42f8740111d14b9f8ca56cc2762175eaf.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/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -169,6 +169,7 @@ Benjamin Collar Jeffery Collins Robert Collins Paul Colomiets +Denver Coneybeare Geremy Condra Juan José Conti Matt Conway @@ -34,6 +34,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. |