Re: Problem with shelve

2008-11-06 Thread Paul Rudin
[EMAIL PROTECTED] writes: > Hi all, > > I am trying to use the shelve module to save an object of a 'Electron' > class I made into a file. The writing goes well but the reading goes : > e=f['0'] > Traceback (most recent call last): > File "", line 1, in > File "shelve.py", line 113, in _

Problem with shelve

2008-11-06 Thread bluesmanu
Hi all, I am trying to use the shelve module to save an object of a 'Electron' class I made into a file. The writing goes well but the reading goes : >>> e=f['0'] Traceback (most recent call last): File "", line 1, in File "shelve.py", line 113, in __getitem__ value = Unpickler(f).load()

Re: Problem with shelve/gdbm

2007-10-21 Thread Gabriel Genellina
En Fri, 19 Oct 2007 17:58:50 -0300, Douglas Applegate <[EMAIL PROTECTED]> escribi�: > I am having a problem with shelve. The problem I think is really with > gdbm. I'll write out a file using shelve/gdbm on an amd64 machine and > then I'll try to read it in on a i386

Problem with shelve/gdbm

2007-10-19 Thread Douglas Applegate
Hi- I am having a problem with shelve. The problem I think is really with gdbm. I'll write out a file using shelve/gdbm on an amd64 machine and then I'll try to read it in on a i386 machine. The result is a 'gdbm fatal: read error.' Reversing directions results in the s

Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread Jim Segrave
In article <[EMAIL PROTECTED]>, softwindow <[EMAIL PROTECTED]> wrote: [some context restored] >> Sometimes you add records but the size of the database does not >> change... :-) >really > >in which case? whenever the database is big enough to add them without it's having to grow :) -- Jim S

Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread softwindow
really in which case? -- http://mail.python.org/mailman/listinfo/python-list

Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread Laszlo Nagy
[EMAIL PROTECTED] i'rta: > >> i only write ten records like this: > > >>name sex age > > >> jimmale 22 > >> tom male 23 > >> lucy female 21 >

Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread skip
>> i only write ten records like this: >>name sex age >> jimmale 22 >> tom male 23 >> lucy female 21 ... >> but i find the size of

hi,everyone. a problem with shelve Module

2006-05-26 Thread softwindow
according to the book instruduction , i use shelve Module to write record to file. i only write ten records like this: name sex age jimmale 22 tom male 23 lucy female