Re: shelve seg error

2005-12-07 Thread Philippe C. Martin
OK, Thanks On Tue, 06 Dec 2005 15:41:08 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> Can I ask anydb which db it's using ? > > the page says > > If the database file already exists, the whichdb module is used to > determine its > type and the appropriate module is used

Re: shelve seg error

2005-12-06 Thread Fredrik Lundh
Philippe C. Martin wrote: > Can I ask anydb which db it's using ? the page says If the database file already exists, the whichdb module is used to determine its type and the appropriate module is used; if it does not exist, the first module listed above that can be imported is used

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
Can I ask anydb which db it's using ? Regards, Philippe On Tue, 06 Dec 2005 15:07:19 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> This code however works, which seems to me means the problem is with the >> default database used by shelve ... which one is it ? > > http://docs

Re: shelve seg error

2005-12-06 Thread Fredrik Lundh
Philippe C. Martin wrote: > This code however works, which seems to me means the problem is with the > default database used by shelve ... which one is it ? http://docs.python.org/lib/module-anydbm.html -- http://mail.python.org/mailman/listinfo/python-list

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
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

shelve seg error

2005-12-06 Thread Philippe C. Martin
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/mailm