[Python-checkins] r80010 - in python/branches/py3k: Doc/faq/windows.rst

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


Author: brian.curtin
Date: Mon Apr 12 20:10:10 2010
New Revision: 80010

Log:
Merged revisions 80009 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80009 | brian.curtin | 2010-04-12 13:07:21 -0500 (Mon, 12 Apr 2010) | 2 lines
  
  Update the Windows FAQ's text about os.kill (#1220212).
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Doc/faq/windows.rst

Modified: python/branches/py3k/Doc/faq/windows.rst
==============================================================================
--- python/branches/py3k/Doc/faq/windows.rst	(original)
+++ python/branches/py3k/Doc/faq/windows.rst	Mon Apr 12 20:10:10 2010
@@ -445,7 +445,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
 
@@ -455,6 +455,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