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

I've got code that implements the popen5 like functionality in my Emacs do you to look it over? Its based on sample code from microsoft. In http://www.barrys-emacs.org/bemacs_7.2-230.win32_proc_code.zip you will find the C++ modules. I can guess from your API list that what you have will probably not work from pythonw, I recall that you need to call AllocConsole for example have play games with std handles. Barry At 08-01-2004 22:31, Peter Astrand wrote:
win32all covers a huge number of API functions, more then would be sane to add to os. But would there be any mileage in added enough from win32all to allow problems like popen5 to be implemented?
There is already the _reg module that has some win32 functions in it on the standard install.
(Not sure if this was in response to my "let's do it in Python" post.)
How many APIs would have to be copied from win32all to enable implementing popen5 in Python?
I'm not sure since I haven't implemented much yet, but we'll need at least:
win32.CreatePipe win32api.DuplicateHandle win32api.GetCurrentProcess win32process.CreateProcess win32process.STARTUPINFO win32gui.EnumThreadWindows win32event.WaitForSingleObject win32process.TerminateProcess
-- /Peter Åstrand <astrand@lysator.liu.se>
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/nospam%40barrys-emacs.org
participants (1)
-
Barry Scott