cpython (2.7): Closes #20872: dbm/gdbm/ndbm close methods are not documented
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
http://hg.python.org/cpython/rev/de44bc26a00a changeset: 91397:de44bc26a00a branch: 2.7 parent: 91390:a353a1f1368a user: Jesus Cea <jcea@jcea.es> date: Wed Jun 25 12:55:48 2014 +0200 summary: Closes #20872: dbm/gdbm/ndbm close methods are not documented files: 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(+), 0 deletions(-) diff --git a/Doc/library/anydbm.rst b/Doc/library/anydbm.rst --- a/Doc/library/anydbm.rst +++ b/Doc/library/anydbm.rst @@ -92,6 +92,14 @@ 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 --- a/Doc/library/dbm.rst +++ b/Doc/library/dbm.rst @@ -64,6 +64,14 @@ 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 --- a/Doc/library/dumbdbm.rst +++ b/Doc/library/dumbdbm.rst @@ -49,6 +49,14 @@ .. 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 --- a/Doc/library/gdbm.rst +++ b/Doc/library/gdbm.rst @@ -116,6 +116,11 @@ unwritten data to be written to the disk. +.. function:: close() + + Close the ``gdbm`` database. + + .. seealso:: Module :mod:`anydbm` -- Repository URL: http://hg.python.org/cpython
participants (1)
-
jesus.cea