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>