11.7. whichdb --- どの DBM モジュールがデータベースを作ったかを推測する¶
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.whichdb(filename)¶ 次の値のうち1つを返します: ファイルが読み取れないか存在しないために開くことができない場合は
None; ファイルのフォーマットを推測することができない場合は空文字列 (''); それ以外は'dbm'や'gdbm'のような、必要なモジュール名を含む文字列。
