pickle problem:cant reload object saved with binary option
Darrell
news at dorb.com
Sat Jan 1 11:15:15 EST 2000
Try this:
fp=open(fn,'r+b')
--
--Darrell
"Marshall" <python at scoobysnacks.com> wrote in message
news:386e1de1.998928692 at news-server...
> I created a class instance (self.info) to hold all my variables and
> I'm trying to save it for use in later sessions. The binary file is
> much smaller but if I set the binary flag while saving, it blows an
> error when I try to load it. I'm trying this on Win98 and I'm calling
> it from a Menu widget using command=self.save and I change the default
> bin=0 to bin=1 and it won't load anymore. The load error is at the
> bottom. Any direction is greatly appreciated. Thanks.
>
More information about the Python-list
mailing list