summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-07-23 13:51:12 (GMT)
committerGitHub <noreply@github.com>2023-07-23 13:51:12 (GMT)
commitb273837fea129df8477da557ad3cb23a0ed12c20 (patch)
treeb633c744e9f4711edefef7ab56a12aa6ce57483f /Doc/library
parente59da0c4f283b966ccb175fb94460f58211a9704 (diff)
downloadcpython-b273837fea129df8477da557ad3cb23a0ed12c20.zip
cpython-b273837fea129df8477da557ad3cb23a0ed12c20.tar.gz
cpython-b273837fea129df8477da557ad3cb23a0ed12c20.tar.bz2
gh-107122: Add clear method to dbm.gdbm.module (gh-107127)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/dbm.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index 2be4993..d226fa9 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -245,6 +245,13 @@ supported.
Close the ``gdbm`` database.
+ .. method:: gdbm.clear()
+
+ Remove all items from the ``gdbm`` database.
+
+ .. versionadded:: 3.13
+
+
:mod:`dbm.ndbm` --- Interface based on ndbm
-------------------------------------------