SimpleXMLRPCServer clobbering sys.stderr? (2.5.2)

Joseph Turian turian at gmail.com
Mon Oct 19 05:12:51 CEST 2009


> Here's what I see:
> * If I use logging to write the output, I don't see any output in the
> server log, but the client gets correct results.
> * If I use sys.stderrto write the output, I don't see any output in
> the server log AND the client gets INcorrect results.
> * If I use sys.stdout to write the output, I DO see any output in the
> server log AND the client gets correct results.

Oh, one more thing.

If I write sys.stdout and then issue:
  sys.stdout.flush()
It appears that the handler aborts at that point and gets no further
into the method.
Why would this happen?

Thanks,
   Joseph



More information about the Python-list mailing list