Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Lib/dbm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down
Original file line number Diff line number Diff line change
@@ -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.