[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 _
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()
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
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
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
really
in which case?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] i'rta:
> >> i only write ten records like this:
>
> >>name sex age
>
> >> jimmale 22
> >> tom male 23
> >> lucy female 21
>
>> i only write ten records like this:
>>name sex age
>> jimmale 22
>> tom male 23
>> lucy female 21
...
>> but i find the size of
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