pickle problem:cant reload object saved with binary option
Siggy Brentrup
bsb at winnegan.de
Sat Jan 1 15:25:51 EST 2000
"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 *******
More information about the Python-list
mailing list