[Python-Dev] The os module, unix and win32

Matthew F. Barnes mfb at lotusland.dyndns.org
Thu Jan 8 22:52:21 EST 2004

Guido van Rossum said:
> How many APIs would have to be copied from win32all to enable
> implementing popen5 in Python?

As long as the possibility of copying APIs from win32all is being
entertained, would it be feasible to make os.kill do something meaningful
on Windows?

I'm no expert on Windows APIs, but it may be as simple as calling
win32api.GenerateConsoleCtrlEvent or win32api.TerminateProcess.  (Although
I seem to remember reading that killing processes externally on Windows is
something of a thorny issue.  It may corrupt the state of DLLs, or
something along those lines.)

Matthew Barnes

More information about the Python-Dev mailing list