Force a DB in shelf?

Oleg Broytmann phd at phd.pp.ru
Wed Oct 31 19:28:04 CET 2001


On Wed, Oct 31, 2001 at 09:19:39PM +0300, Oleg Broytmann wrote:
> On Wed, Oct 31, 2001 at 10:09:36AM -0800, ToddW wrote:
> > I know you can forcibly use one db over another, but I can't seem to
> > figure out how. Anyone have a clue?
> 
>    Import the desire DB before importing shelve. Shelve later will happily
> use imported DB.

   Sorry, here is the corerct solution:

import anydbm, dbhash
anydbm._defaultmod = dbhash

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list