shelve: choice of database package

Alex Martelli aleaxit at yahoo.com
Tue Oct 5 11:08:36 CEST 2004


Ajay <abra9823 at mail.usyd.edu.au> wrote:

> hi!
> 
> i am using shelve in a piece of code i have. The code originally used
> 'bsddb' but the Berkeley DB library isn't present on my platform (WinCE).
> It says in the library reference that "The choice of which database package
> will be used (such as dbm, gdbm or bsddb) depends on which interface is
> available".
> now i can say its not using bsddb (since its not present). Is there a way
> of telling which package it is using?

See the whichdbm module in the standard library.


Alex



More information about the Python-list mailing list