https://github.com/python/cpython/commit/6d9141ed766f4003f39362937dc397e9f734c7e5
commit: 6d9141ed766f4003f39362937dc397e9f734c7e5
branch: main
author: Erlend E. Aasland <[email protected]>
committer: erlend-aasland <[email protected]>
date: 2024-02-14T13:47:19Z
summary:

gh-100414: Make dbm.sqlite3 the preferred dbm backend (#115447)

files:
M Doc/whatsnew/3.13.rst
M Lib/dbm/__init__.py
M Misc/NEWS.d/next/Library/2024-01-23-13-03-22.gh-issue-100414.5kTdU5.rst

diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index a265bf1734c1d3..b14fb4e5392a2c 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -238,7 +238,7 @@ dbm
   from the database.
   (Contributed by Donghee Na in :gh:`107122`.)
 
-* Add new :mod:`dbm.sqlite3` backend.
+* Add new :mod:`dbm.sqlite3` backend, and make it the default :mod:`!dbm` 
backend.
   (Contributed by Raymond Hettinger and Erlend E. Aasland in :gh:`100414`.)
 
 doctest
diff --git a/Lib/dbm/__init__.py b/Lib/dbm/__init__.py
index 97c0bb1c9ca946..4fdbc54e74cfb6 100644
--- a/Lib/dbm/__init__.py
+++ b/Lib/dbm/__init__.py
@@ -38,7 +38,7 @@
 class error(Exception):
     pass
 
-_names = ['dbm.gnu', 'dbm.ndbm', 'dbm.sqlite3', 'dbm.dumb']
+_names = ['dbm.sqlite3', 'dbm.gnu', 'dbm.ndbm', 'dbm.dumb']
 _defaultmod = None
 _modules = {}
 
diff --git 
a/Misc/NEWS.d/next/Library/2024-01-23-13-03-22.gh-issue-100414.5kTdU5.rst 
b/Misc/NEWS.d/next/Library/2024-01-23-13-03-22.gh-issue-100414.5kTdU5.rst
index ffcb926a8d546c..0f3b3bdd7c6d26 100644
--- a/Misc/NEWS.d/next/Library/2024-01-23-13-03-22.gh-issue-100414.5kTdU5.rst
+++ b/Misc/NEWS.d/next/Library/2024-01-23-13-03-22.gh-issue-100414.5kTdU5.rst
@@ -1,2 +1,2 @@
-Add :mod:`dbm.sqlite3` as a backend to :mod:`dbm`.
+Add :mod:`dbm.sqlite3` as a backend to :mod:`dbm`, and make it the new default 
:mod:`!dbm` backend.
 Patch by Raymond Hettinger and Erlend E. Aasland.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to