@@ -222,6 +222,9 @@ supported.
222222 When the database has been opened in fast mode, this method forces any
223223 unwritten data to be written to the disk.
224224
225+ .. method :: gdbm.close()
226+
227+ Close the ``gdbm `` database.
225228
226229:mod: `dbm.ndbm ` --- Interface based on ndbm
227230-------------------------------------------
@@ -253,7 +256,7 @@ to locate the appropriate header file to simplify building this module.
253256
254257.. function :: open(filename[, flag[, mode]])
255258
256- Open a dbm database and return a ``dbm `` object. The *filename * argument is the
259+ Open a dbm database and return a ``ndbm `` object. The *filename * argument is the
257260 name of the database file (without the :file: `.dir ` or :file: `.pag ` extensions).
258261
259262 The optional *flag * argument must be one of these values:
@@ -278,6 +281,12 @@ to locate the appropriate header file to simplify building this module.
278281 database has to be created. It defaults to octal ``0o666 `` (and will be
279282 modified by the prevailing umask).
280283
284+ In addition to the dictionary-like methods, ``ndbm `` objects
285+ provide the following method:
286+
287+ .. method :: ndbm.close()
288+
289+ Close the ``ndbm `` database.
281290
282291
283292:mod: `dbm.dumb ` --- Portable DBM implementation
@@ -325,9 +334,14 @@ The module defines the following:
325334
326335 In addition to the methods provided by the
327336 :class: `collections.abc.MutableMapping ` class, :class: `dumbdbm ` objects
328- provide the following method :
337+ provide the following methods :
329338
330339 .. method :: dumbdbm.sync()
331340
332341 Synchronize the on-disk directory and data files. This method is called
333342 by the :meth: `Shelve.sync ` method.
343+
344+ .. method :: dumbdbm.close()
345+
346+ Close the ``dumbdbm `` database.
347+
0 commit comments