On Fri, May 11, 2012 at 12:45 AM, Stefan Behnel <stefan...@behnel.de> wrote: > However, have you tried using a pipe for them instead of a real file? That > would allow you to retrieve the output without needing to pass through a > file in the file system. You can also replace sys.stdout/err with arbitrary > objects in Python space, which could then forward the output in any way you > want.
Surely a pipe would cause a deadlock if the pipe fills up if Python and the C program are running in the same process/thread? I'm not too familiar with these sorts of things. -- Devin -- http://mail.python.org/mailman/listinfo/python-list