file modes

/F effbot at
Tue Feb 1 16:04:39 EST 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.


More information about the Python-list mailing list