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 -- http://mail.python.org/mailman/listinfo/python-list