From 6d52ced4ceccc0ec54c8e3064ad4bbdfbd27e468 Mon Sep 17 00:00:00 2001 From: Jesus Cea Date: Wed, 25 Jun 2014 12:55:48 +0200 Subject: [PATCH] Closes #20872: dbm/gdbm/ndbm close methods are not documented --- Doc/library/anydbm.rst | 8 ++++++++ Doc/library/dbm.rst | 8 ++++++++ Doc/library/dumbdbm.rst | 8 ++++++++ Doc/library/gdbm.rst | 5 +++++ 4 files changed, 29 insertions(+) diff --git a/Doc/library/anydbm.rst b/Doc/library/anydbm.rst index 86d8a59b85..38e01f31a6 100644 --- a/Doc/library/anydbm.rst +++ b/Doc/library/anydbm.rst @@ -92,6 +92,14 @@ then prints out the contents of the database:: db.close() +In addition to the dictionary-like methods, ``anydbm`` objects +provide the following method: + +.. function:: close() + + Close the ``anydbm`` database. + + .. seealso:: Module :mod:`dbhash` diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst index 6f9781e4d4..a03c7c51ce 100644 --- a/Doc/library/dbm.rst +++ b/Doc/library/dbm.rst @@ -64,6 +64,14 @@ The module defines the following: database has to be created. It defaults to octal ``0666`` (and will be modified by the prevailing umask). + In addition to the dictionary-like methods, ``dbm`` objects + provide the following method: + + + .. function:: close() + + Close the ``dbm`` database. + .. seealso:: diff --git a/Doc/library/dumbdbm.rst b/Doc/library/dumbdbm.rst index 965710ab10..1a9a647e02 100644 --- a/Doc/library/dumbdbm.rst +++ b/Doc/library/dumbdbm.rst @@ -49,6 +49,14 @@ The module defines the following: .. versionchanged:: 2.2 The *mode* argument was ignored in earlier versions. +In addition to the dictionary-like methods, ``dumbdm`` objects +provide the following method: + + +.. function:: close() + + Close the ``dumbdm`` database. + .. seealso:: diff --git a/Doc/library/gdbm.rst b/Doc/library/gdbm.rst index 742c03595d..f36bb28dc0 100644 --- a/Doc/library/gdbm.rst +++ b/Doc/library/gdbm.rst @@ -116,6 +116,11 @@ methods: unwritten data to be written to the disk. +.. function:: close() + + Close the ``gdbm`` database. + + .. seealso:: Module :mod:`anydbm` -- 2.50.1