From c1555984e6c91fe571e4247d3d41ea74db456250 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 23 Jul 2023 23:40:41 +0900 Subject: [PATCH 1/3] gh-107122: Update what's news for dbm.*dbm.clear() method --- Doc/whatsnew/3.13.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 1d34d8a0fa463c..b7d3942b1b085f 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -101,6 +101,13 @@ array It can be used instead of ``'u'`` type code, which is deprecated. (Contributed by Inada Naoki in :gh:`80480`.) +dbm +--- + +* Add :meth:`dbm.gdbm.clear` and :meth:`dbm.ndbm.clear` that remove all items + from the database. + (Contributed by Dong-hee Na in :gh:`107122`.) + io -- From a5d4b675fea714f5754d791ca5825492c478e970 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 23 Jul 2023 23:44:20 +0900 Subject: [PATCH 2/3] Update Doc/whatsnew/3.13.rst Co-authored-by: Victor Stinner --- Doc/whatsnew/3.13.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index b7d3942b1b085f..cb51e1c60b8fcd 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -104,7 +104,7 @@ array dbm --- -* Add :meth:`dbm.gdbm.clear` and :meth:`dbm.ndbm.clear` that remove all items +* Add :meth:`dbm.gdbm.clear` and :meth:`dbm.ndbm.clear` methods that remove all items from the database. (Contributed by Dong-hee Na in :gh:`107122`.) From d84152329a90801933dd7d813cf060c4f2968ca1 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 23 Jul 2023 23:54:51 +0900 Subject: [PATCH 3/3] Fix docs --- Doc/whatsnew/3.13.rst | 2 +- .../2023-07-23-13-07-34.gh-issue-107122.9HFUyb.rst | 2 +- .../2023-07-23-21-16-54.gh-issue-107122.VNuNcq.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index cb51e1c60b8fcd..8ca0abf5525763 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -104,7 +104,7 @@ array dbm --- -* Add :meth:`dbm.gdbm.clear` and :meth:`dbm.ndbm.clear` methods that remove all items +* Add :meth:`dbm.gnu.gdbm.clear` and :meth:`dbm.ndbm.ndbm.clear` methods that remove all items from the database. (Contributed by Dong-hee Na in :gh:`107122`.) diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-23-13-07-34.gh-issue-107122.9HFUyb.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-23-13-07-34.gh-issue-107122.9HFUyb.rst index c2e1c58c1b42c5..64ac8ac6df09b8 100644 --- a/Misc/NEWS.d/next/Core and Builtins/2023-07-23-13-07-34.gh-issue-107122.9HFUyb.rst +++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-23-13-07-34.gh-issue-107122.9HFUyb.rst @@ -1 +1 @@ -Add :meth:`dbm.gdbm.clear` to :mod:`dbm.gdbm`. Patch By Dong-hee Na. +Add :meth:`dbm.gnu.gdbm.clear` to :mod:`dbm.gnu`. Patch By Dong-hee Na. diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-23-21-16-54.gh-issue-107122.VNuNcq.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-23-21-16-54.gh-issue-107122.VNuNcq.rst index d63aeb54ae1454..5b7cc98ddc6414 100644 --- a/Misc/NEWS.d/next/Core and Builtins/2023-07-23-21-16-54.gh-issue-107122.VNuNcq.rst +++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-23-21-16-54.gh-issue-107122.VNuNcq.rst @@ -1 +1 @@ -Add :meth:`dbm.ndbm.clear` to :mod:`dbm.ndbm`. Patch By Dong-hee Na. +Add :meth:`dbm.ndbm.ndbm.clear` to :mod:`dbm.ndbm`. Patch By Dong-hee Na.