file modes

/F effbot at telia.com
Tue Feb 1 22:04:39 CET 2000


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