diff options
author | Dong-hee Na <donghee.na@python.org> | 2023-07-23 14:26:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 14:26:23 (GMT) |
commit | 0ae4870d09de82ed5063b6998c172cc63628437e (patch) | |
tree | 467aa07b0291a44a37ea9de2654c60ff9464ffcb /Doc/library | |
parent | b3c34e55c053846beb35f5e4253ef237b3494bd0 (diff) | |
download | cpython-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.rst | 6 |
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 ----------------------------------------------- |