subprocess.Popen

Peter Hansen peter at engcorp.com
Mon Dec 13 02:07:15 CET 2004


Peter Hansen wrote:
> Michele Simionato wrote:
>> I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I
>> wonder why a "kill" method is missing. I am just adding it via 
>> subclassing,

 > [Peter, noting os.kill is absent in win32]

Note, for the record, however, Jimmy Retzlaff's excellent recipe
for Win32 process termination, which can work with ctypes or
pywin32, and with either the PID such as popen returns and
subprocess.Popen stores, or the "handle" that spawn returns
(and which subprocess.Popen stores in its _handle attribute):

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347462

-Peter



More information about the Python-list mailing list