subprocess.Popen inheriting

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Dec 16 05:15:00 EST 2008


En Tue, 16 Dec 2008 07:29:19 -0200, Aaron Brady <castironpi at gmail.com>  
escribió:

> I have a file handle I want to inherit in a child process.  I am
> looking at '_make_inheritable' in 'Popen', but it needs an instance,
> and by the time I have one, the subprocess is already running.
>
> Can't I call 'Popen._make_inheritable( None, handle )'?  The method
> does not use 'self'.

File handles are inherited by default, I think. What's your specific  
problem?

-- 
Gabriel Genellina




More information about the Python-list mailing list