[Python-checkins] r80009 - python/trunk/Doc/faq/windows.rst

brian.curtin python-checkins at python.org
Mon Apr 12 20:07:21 CEST 2010


Author: brian.curtin
Date: Mon Apr 12 20:07:21 2010
New Revision: 80009

Log:
Update the Windows FAQ's text about os.kill (#1220212).


Modified:
   python/trunk/Doc/faq/windows.rst

Modified: python/trunk/Doc/faq/windows.rst
==============================================================================
--- python/trunk/Doc/faq/windows.rst	(original)
+++ python/trunk/Doc/faq/windows.rst	Mon Apr 12 20:07:21 2010
@@ -441,7 +441,7 @@
 How do I emulate os.kill() in Windows?
 --------------------------------------
 
-To terminate a process, you can use ctypes::
+Prior to Python 2.7 and 3.2, to terminate a process, you can use :mod:`ctypes`::
 
    import ctypes
 
@@ -451,6 +451,11 @@
        handle = kernel32.OpenProcess(1, 0, pid)
        return (0 != kernel32.TerminateProcess(handle, 0))
 
+In 2.7 and 3.2, :func:`os.kill` is implemented similar to the above function,
+with the additional feature of being able to send CTRL+C and CTRL+BREAK
+to console subprocesses which are designed to handle those signals. See
+:func:`os.kill` for further details.
+
 
 Why does os.path.isdir() fail on NT shared directories?
 -------------------------------------------------------


More information about the Python-checkins mailing list