Re: shelve and ".bak .dat .dir" files

2006-04-07 Thread Sion Arrowsmith
Michele Petrazzo <[EMAIL PROTECTED]> wrote: >Sion Arrowsmith wrote: >> This is a documented behaviour of shelve: > [ open(filename) may create files with names based on filename + ext ] >(and I fail to understand why >> it is a problem). >Because: >1) I pass a name that, after, I'll pass to anothe

Re: shelve and ".bak .dat .dir" files

2006-04-06 Thread Michele Petrazzo
Sion Arrowsmith wrote: > > This is a documented behaviour of shelve: Sorry, I had read only the: """Open a persistent dictionary. The filename specified is the base filename""" ... :) > I guess this depends on what dbm shelve is built on the documentation > implies it goes through anydbm. I'm no

Re: shelve and ".bak .dat .dir" files

2006-04-06 Thread Sion Arrowsmith
Michele Petrazzo <[EMAIL PROTECTED]> wrote: >I'm trying a script on a debian 3.1 that has problems on shelve library. >The same script work well on a fedora 2 and I don't know why it create >this problem on debian: > [ ... ] >Now I see that shelve create not my file, but three files that has the

shelve and ".bak .dat .dir" files

2006-04-06 Thread Michele Petrazzo
Hi, I'm trying a script on a debian 3.1 that has problems on shelve library. The same script work well on a fedora 2 and I don't know why it create this problem on debian: #extract from my code import shelve class XX: def __init__(self): self._data = shelve.open("/tmp/myfile") # do th