ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
13. Data Persistence
13.1 pickle -- Python object serialization
13.2 cPickle -- A faster pickle
13.3 copy reg -- Register pickle support functions
13.4 shelve -- Python object persistence
13.5 marshal -- Internal Python object serialization
13.6 anydbm -- Generic access to DBM-style databases
13.7 whichdb -- Guess which DBM module created a database
13.8 dbm -- Simple ``database'' interface
13.9 gdbm -- GNU's reinterpretation of dbm
13.10 dbhash -- DBM-style interface to the BSD database library
13.11 bsddb -- Interface to Berkeley DB library
13.12 dumbdbm -- Portable DBM implementation
13.13 sqlite3 -- DB-API 2.0 interface for SQLite databases

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 13. Data Persistence
ActivePython 2.5 documentation

13.7 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.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved