shelve seg error
Philippe C. Martin
pmartin at snakecard.com
Tue Dec 6 08:53:57 EST 2005
PS:
This code however works, which seems to me means the problem is with the
default database used by shelve ... which one is it ?
import shelve
import gdbm
def gdbm_shelve(filename, flag="c"):
return shelve.Shelf(gdbm.open(filename, flag))
db = gdbm_shelve("dbfile")
Regards,
Philippe
On Tue, 06 Dec 2005 05:53:22 -0600, Philippe C. Martin wrote:
> Hi,
>
> I just installed (compiled) Python 2.4.2 under Suse 10.
>
> The following code generates a seg error:
>
> import shelve
> print shelve.open ('test')
>
> I assume this has to do with the db behind shelve.
>
> How do I go about tracing/fixing the problem ?
>
> Regards,
>
> Philippe
More information about the Python-list
mailing list