Yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/module-whichdb.html

From ZCubes Wiki
Revision as of 19:55, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/dbhash-objects.html|[[Image:yurtt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

7.12 whichdb -- Guess which DBM module created a database

The single function in this module attempts to guess which of the several simple database modules available-dbm, gdbm, or dbhash-should be used to open a given file.

whichdb (filename)
Returns one of the following values: None if the file can't be opened because it's unreadable or doesn't exist; the empty string ('') if the file's format can't be guessed; or a string containing the required module name, such as 'dbm' or 'gdbm'.

See About this document... for information on suggesting changes.