Retrieving result from embedded execution

Devin Jeanpierre jeanpierreda at gmail.com
Fri May 11 13:36:06 EDT 2012


On Fri, May 11, 2012 at 12:45 AM, Stefan Behnel <stefan_ml at 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



More information about the Python-list mailing list