[Twisted-Python] Is that behavior of t.i.stdio.StandardIO known?

Itamar Turner-Trauring itamar at itamarst.org
Thu Jul 29 08:13:06 EDT 2010

On Thu, 2010-07-29 at 11:23 +0400, Alexey wrote:

> The same happens if you redirect output to a pipe (no matter if it a named FIFO or an anonymous pipe).
> But if you redirect output to a file or to a /dev/null, this happens:
>  $ ./program.py > /dev/null
> <a short pause, no input>
> o: StdioProtocol.connectionLost('[Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
> o: ]')OK
>  $

This was a bug, and was fixed in Twisted 10.1. From the release notes:

- twisted.internet.stdio now supports stdout being redirected to a
   normal file (except when using epollreactor). (#2259)

So, upgrade to Twisted 10.1.

More information about the Twisted-Python mailing list