summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-07-23 14:26:23 (GMT)
committerGitHub <noreply@github.com>2023-07-23 14:26:23 (GMT)
commit0ae4870d09de82ed5063b6998c172cc63628437e (patch)
tree467aa07b0291a44a37ea9de2654c60ff9464ffcb /Doc/library
parentb3c34e55c053846beb35f5e4253ef237b3494bd0 (diff)
downloadcpython-0ae4870d09de82ed5063b6998c172cc63628437e.zip
cpython-0ae4870d09de82ed5063b6998c172cc63628437e.tar.gz
cpython-0ae4870d09de82ed5063b6998c172cc63628437e.tar.bz2
gh-107122: Add clear method to dbm.ndbm module (gh-107126)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/dbm.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index d226fa9..766847b 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -320,6 +320,12 @@ to locate the appropriate header file to simplify building this module.
Close the ``ndbm`` database.
+ .. method:: ndbm.clear()
+
+ Remove all items from the ``ndbm`` database.
+
+ .. versionadded:: 3.13
+
:mod:`dbm.dumb` --- Portable DBM implementation
-----------------------------------------------