shelve portability problem

Bill Janssen janssen at parc.xerox.com
Thu Jul 29 15:37:33 EDT 1999


Excerpts from ext.python: 29-Jul-99 Re: shelve portability problem
"Fredrik Lundh"@pythonwa (527*)

> alright.  this might work:

> import shelve
> import gdbm

> def myopen(filename, flag="c"):
>     return Shelf(gdbm.open(filename, flag))

> db = myopen("odbfile")

This should work.  I use shelve with bsddb this way.

Bill




More information about the Python-list mailing list