Sharing Pipes in win32

Mark Hammond mhammond at
Mon Feb 9 05:49:49 CET 2004

Nir of the Waves wrote:

> In windows platforms how can I make two processes hold two ends of the 
> same pipe?
> os.pipe() returns reader and writer descriptors but how do I export one 
> of the ends to another process?
> Note: popen() is not good for me since the new process is left without 
> tty input and output.

I believe you can either do it via a child process and handle 
inheritance (meaning os.* functions should work too), or via named pipes 
(meaning you will need to use win32process).


More information about the Python-list mailing list