Skip to content

Commit 6d9141e

Browse files
gh-100414: Make dbm.sqlite3 the preferred dbm backend (#115447)
1 parent ec8909a commit 6d9141e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/whatsnew/3.13.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ dbm
238238
from the database.
239239
(Contributed by Donghee Na in :gh:`107122`.)
240240

241-
* Add new :mod:`dbm.sqlite3` backend.
241+
* Add new :mod:`dbm.sqlite3` backend, and make it the default :mod:`!dbm` backend.
242242
(Contributed by Raymond Hettinger and Erlend E. Aasland in :gh:`100414`.)
243243

244244
doctest

Lib/dbm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class error(Exception):
3939
pass
4040

41-
_names = ['dbm.gnu', 'dbm.ndbm', 'dbm.sqlite3', 'dbm.dumb']
41+
_names = ['dbm.sqlite3', 'dbm.gnu', 'dbm.ndbm', 'dbm.dumb']
4242
_defaultmod = None
4343
_modules = {}
4444

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Add :mod:`dbm.sqlite3` as a backend to :mod:`dbm`.
1+
Add :mod:`dbm.sqlite3` as a backend to :mod:`dbm`, and make it the new default :mod:`!dbm` backend.
22
Patch by Raymond Hettinger and Erlend E. Aasland.

0 commit comments

Comments
 (0)