[Python-checkins] cpython (2.7): Closes #20872: dbm/gdbm/ndbm close methods are not documented

jesus.cea python-checkins at python.org
Wed Jun 25 13:06:52 CEST 2014


http://hg.python.org/cpython/rev/de44bc26a00a
changeset: 91397:de44bc26a00a
branch: 2.7
parent: 91390:a353a1f1368a
user: Jesus Cea <jcea at 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /