| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -417,8 +417,8 @@ Subprocess Transports | |||
| 417 | 417 | ||
| 418 | 418 | Stop the subprocess. | |
| 419 | 419 | ||
| 420 | - On POSIX systems, this method sends SIGTERM to the subprocess. | ||
| 421 | - On Windows, the Windows API function TerminateProcess() is called to | ||
| 420 | + On POSIX systems, this method sends :py:const:`~signal.SIGTERM` to the subprocess. | ||
| 421 | + On Windows, the Windows API function :c:func:`!TerminateProcess` is called to | ||
| 422 | 422 | stop the subprocess. | |
| 423 | 423 | ||
| 424 | 424 | See also :meth:`subprocess.Popen.terminate`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,7 +240,7 @@ their completion. | |||
| 240 | 240 | ||
| 241 | 241 | .. note:: | |
| 242 | 242 | ||
| 243 | - On Windows, :py:data:`SIGTERM` is an alias for :meth:`terminate`. | ||
| 243 | + On Windows, :py:const:`~signal.SIGTERM` is an alias for :meth:`terminate`. | ||
| 244 | 244 | ``CTRL_C_EVENT`` and ``CTRL_BREAK_EVENT`` can be sent to processes | |
| 245 | 245 | started with a *creationflags* parameter which includes | |
| 246 | 246 | ``CREATE_NEW_PROCESS_GROUP``. | |
@@ -249,10 +249,10 @@ their completion. | |||
| 249 | 249 | ||
| 250 | 250 | Stop the child process. | |
| 251 | 251 | ||
| 252 | - On POSIX systems this method sends :py:const:`signal.SIGTERM` to the | ||
| 252 | + On POSIX systems this method sends :py:const:`~signal.SIGTERM` to the | ||
| 253 | 253 | child process. | |
| 254 | 254 | ||
| 255 | - On Windows the Win32 API function :c:func:`TerminateProcess` is | ||
| 255 | + On Windows the Win32 API function :c:func:`!TerminateProcess` is | ||
| 256 | 256 | called to stop the child process. | |
| 257 | 257 | ||
| 258 | 258 | .. method:: kill() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,4 +157,18 @@ Other Functions | |||
| 157 | 157 | .. function:: heapmin() | |
| 158 | 158 | ||
| 159 | 159 | Force the :c:func:`malloc` heap to clean itself up and return unused blocks to | |
| 160 | - the operating system. On failure, this raises :exc:`OSError`. | ||
| 160 | + the operating system. On failure, this raises :exc:`OSError`. | ||
| 161 | + | ||
| 162 | + .. data:: CRT_ASSEMBLY_VERSION | ||
| 163 | + | ||
| 164 | + The CRT Assembly version, from the :file:`crtassem.h` header file. | ||
| 165 | + | ||
| 166 | + | ||
| 167 | + .. data:: VC_ASSEMBLY_PUBLICKEYTOKEN | ||
| 168 | + | ||
| 169 | + The VC Assembly public key token, from the :file:`crtassem.h` header file. | ||
| 170 | + | ||
| 171 | + | ||
| 172 | + .. data:: LIBRARIES_ASSEMBLY_NAME_PREFIX | ||
| 173 | + | ||
| 174 | + The Libraries Assembly name prefix, from the :file:`crtassem.h` header file. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -649,8 +649,8 @@ The :mod:`multiprocessing` package mostly replicates the API of the | |||
| 649 | 649 | ||
| 650 | 650 | .. method:: terminate() | |
| 651 | 651 | ||
| 652 | - Terminate the process. On POSIX this is done using the ``SIGTERM`` signal; | ||
| 653 | - on Windows :c:func:`TerminateProcess` is used. Note that exit handlers and | ||
| 652 | + Terminate the process. On POSIX this is done using the :py:const:`~signal.SIGTERM` signal; | ||
| 653 | + on Windows :c:func:`!TerminateProcess` is used. Note that exit handlers and | ||
| 654 | 654 | finally clauses, etc., will not be executed. | |
| 655 | 655 | ||
| 656 | 656 | Note that descendant processes of the process will *not* be terminated -- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -857,8 +857,8 @@ Instances of the :class:`Popen` class have the following methods: | |||
| 857 | 857 | ||
| 858 | 858 | .. method:: Popen.terminate() | |
| 859 | 859 | ||
| 860 | - Stop the child. On POSIX OSs the method sends SIGTERM to the | ||
| 861 | - child. On Windows the Win32 API function :c:func:`TerminateProcess` is called | ||
| 860 | + Stop the child. On POSIX OSs the method sends :py:const:`~signal.SIGTERM` to the | ||
| 861 | + child. On Windows the Win32 API function :c:func:`!TerminateProcess` is called | ||
| 862 | 862 | to stop the child. | |
| 863 | 863 | ||
| 864 | 864 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2388,11 +2388,11 @@ changes, or look through the Subversion logs for all the details. | |||
| 2388 | 2388 | using the format character ``'?'``. | |
| 2389 | 2389 | (Contributed by David Remahl.) | |
| 2390 | 2390 | ||
| 2391 | - * The :class:`Popen` objects provided by the :mod:`subprocess` module | ||
| 2392 | - now have :meth:`terminate`, :meth:`kill`, and :meth:`send_signal` methods. | ||
| 2393 | - On Windows, :meth:`send_signal` only supports the :const:`SIGTERM` | ||
| 2391 | + * The :class:`~subprocess.Popen` objects provided by the :mod:`subprocess` module | ||
| 2392 | + now have :meth:`~subprocess.Popen.terminate`, :meth:`~subprocess.Popen.kill`, and :meth:`~subprocess.Popen.send_signal` methods. | ||
| 2393 | + On Windows, :meth:`!send_signal` only supports the :py:const:`~signal.SIGTERM` | ||
| 2394 | 2394 | signal, and all these methods are aliases for the Win32 API function | |
| 2395 | - :c:func:`TerminateProcess`. | ||
| 2395 | + :c:func:`!TerminateProcess`. | ||
| 2396 | 2396 | (Contributed by Christian Heimes.) | |
| 2397 | 2397 | ||
| 2398 | 2398 | * A new variable in the :mod:`sys` module, :attr:`float_info`, is an | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,7 +169,7 @@ Some smaller changes made to the core Python language are: | |||
| 169 | 169 | ... if '<critical>' in line: | |
| 170 | 170 | ... outfile.write(line) | |
| 171 | 171 | ||
| 172 | - With the new syntax, the :func:`contextlib.nested` function is no longer | ||
| 172 | + With the new syntax, the :func:`!contextlib.nested` function is no longer | ||
| 173 | 173 | needed and is now deprecated. | |
| 174 | 174 | ||
| 175 | 175 | (Contributed by Georg Brandl and Mattias Brändström; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -743,8 +743,8 @@ Several new and useful functions and methods have been added: | |||
| 743 | 743 | ||
| 744 | 744 | Two methods have been deprecated: | |
| 745 | 745 | ||
| 746 | - * :meth:`xml.etree.ElementTree.getchildren` use ``list(elem)`` instead. | ||
| 747 | - * :meth:`xml.etree.ElementTree.getiterator` use ``Element.iter`` instead. | ||
| 746 | + * :meth:`!xml.etree.ElementTree.getchildren` use ``list(elem)`` instead. | ||
| 747 | + * :meth:`!xml.etree.ElementTree.getiterator` use ``Element.iter`` instead. | ||
| 748 | 748 | ||
| 749 | 749 | For details of the update, see `Introducing ElementTree | |
| 750 | 750 | <https://web.archive.org/web/20200703234532/http://effbot.org/zone/elementtree-13-intro.htm>`_ | |
@@ -2682,7 +2682,7 @@ require changes to your code: | |||
| 2682 | 2682 | ||
| 2683 | 2683 | (Contributed by Georg Brandl; :issue:`5675`.) | |
| 2684 | 2684 | ||
| 2685 | - * The previously deprecated :func:`contextlib.nested` function has been removed | ||
| 2685 | + * The previously deprecated :func:`!contextlib.nested` function has been removed | ||
| 2686 | 2686 | in favor of a plain :keyword:`with` statement which can accept multiple | |
| 2687 | 2687 | context managers. The latter technique is faster (because it is built-in), | |
| 2688 | 2688 | and it does a better job finalizing multiple context managers when one of them | |
| Back | FazBrowse Home | New Git URL |
0 commit comments