Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/whichdb.html
Дата изменения: Thu Nov 5 13:46:18 2015
Дата индексирования: Sun Apr 10 21:30:39 2016
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п
Python: module whichdb
 
 
whichdb
index
/usr/local/Python-2.5/lib/python2.5/whichdb.py
Module Docs

Guess which db package to use to open a db file.

 
Modules
       
dbm
os
struct
sys

 
Functions
       
whichdb(filename)
Guess which db package to use to open a db file.
 
Return values:
 
- None if the database file can't be read;
- empty string if the file can be read but can't be recognized
- the module name (e.g. "dbm" or "gdbm") if recognized.
 
Importing the given module may still fail, and opening the
database using that module may still fail.