pickle problem:cant reload object saved with binary option

Darrell darrell at dorb.com
Sat Jan 1 17:01:47 EST 2000


Real men go straight to the source :)

--Darrell
----- Original Message -----
From: "Siggy Brentrup" <bsb at winnegan.de>
To: <python-list at python.org>
Sent: Saturday, January 01, 2000 3:25 PM
Subject: Re: pickle problem:cant reload object saved with binary option


> "Darrell" <darrell at dorb.com> writes:
>
> > Out of curiosity I looked into this file mode thing. Sure beats cleaning
out
> > the garage !
> >
> > Looks like the '+' allows read/write.
> > >>> open('t','w').write('now is the time')
> > >>> open('t','r+').write('xx')
> > >>> print open('t','r').read()
> > xxw is the time
> > >>>
> > For append you have to use 'a'
> >
> > /////////////////////////////////
> > gcc\libio\fileops.c function _IO_file_fopen
>
> [...]
>
> No need for UTSL, it's available in the python docs:
>
> http://www.python.org/doc/current/lib/built-in-funcs.html
>
> look for "open"
>
> Thanks
>   Siggy
>
> --
> Siggy Brentrup - bsb at winnegan.de - http://www.winnegan.de/
> ****** ceterum censeo javascriptum esse restrictam *******
>
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list