(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-bsddb.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/someos.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/dbhash-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 7.11 bsddb Up: 7. Optional Operating System Previous: 7.9.1 Database Objects
7.10 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'.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-bsddb.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/someos.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/dbhash-objects.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 7.11 bsddb Up: 7. Optional Operating System Previous: 7.9.1 Database Objects
Send comments on this document to python-docs@python.org.