file modes

Dave Berkeley dave at rotwang.freeserve.co.uk
Tue Feb 1 23:44:12 CET 2000


That has done the trick.

Thank you.

Dave Berkeley

</F> <effbot at telia.com> wrote in message
news:HTHl4.4500$al3.56408 at newsc.telia.net...
> Dave Berkeley wrote:
> > But the "wb" mode does not seem to override the underlying mode of
stdout.
> > I'm using Python 1.5.2 on Win 98 SE, talking to Apache 1.3.9.
> >
> > How can I write to stdout in binary mode?
>
> you can use the -u option to the interpreter to force
> stdout and stderr into unbuffered binary mode.
>
> </F>
>
>





More information about the Python-list mailing list