[Python 2.4/2.5] subprocess module is sorely deficient?

Christian Heimes lists at cheimes.de
Tue Apr 22 16:45:20 EDT 2008


Harishankar schrieb:
> 2. Kill the subprocess in a platform independent manner (i.e. no third party 
> modules and no hacks).

I've added the feature to the Popen class a few days ago. The new
methods are kill(), terminate() and send_signal(sig). On Windows all
methods just fall back to _subprocess.TerminateProcess. On POSIX OS
os.kill() is used.

The code also works on Python 2.4 and 2.5 but I can't add new features
to maintainence branches.

Christian




More information about the Python-list mailing list