Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf0c58c6

Browse files
authored
[3.11]gh-101100: Fix Sphinx warnings inwhatsnew/2.7.rst and related (GH-115319) (#115331)
1 parent9b6aba2 commitf0c58c6

File tree

9 files changed

+120
-101
lines changed

9 files changed

+120
-101
lines changed

‎Doc/library/asyncio-protocol.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ Subprocess Transports
417417

418418
Stop the subprocess.
419419

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
422422
stop the subprocess.
423423

424424
See also:meth:`subprocess.Popen.terminate`.

‎Doc/library/asyncio-subprocess.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ their completion.
235235

236236
..note::
237237

238-
On Windows,:py:data:`SIGTERM` is an alias for:meth:`terminate`.
238+
On Windows,:py:const:`~signal.SIGTERM` is an alias for:meth:`terminate`.
239239
``CTRL_C_EVENT`` and ``CTRL_BREAK_EVENT`` can be sent to processes
240240
started with a *creationflags* parameter which includes
241241
``CREATE_NEW_PROCESS_GROUP``.
@@ -244,10 +244,10 @@ their completion.
244244

245245
Stop the child process.
246246

247-
On POSIX systems this method sends:py:const:`signal.SIGTERM` to the
247+
On POSIX systems this method sends:py:const:`~signal.SIGTERM` to the
248248
child process.
249249

250-
On Windows the Win32 API function:c:func:`TerminateProcess` is
250+
On Windows the Win32 API function:c:func:`!TerminateProcess` is
251251
called to stop the child process.
252252

253253
..method::kill()

‎Doc/library/msvcrt.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,19 @@ Other Functions
157157
..function::heapmin()
158158

159159
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+
163+
..data::CRT_ASSEMBLY_VERSION
164+
165+
The CRT Assembly version, from the:file:`crtassem.h` header file.
166+
167+
168+
..data::VC_ASSEMBLY_PUBLICKEYTOKEN
169+
170+
The VC Assembly public key token, from the:file:`crtassem.h` header file.
171+
172+
173+
..data::LIBRARIES_ASSEMBLY_NAME_PREFIX
174+
175+
The Libraries Assembly name prefix, from the:file:`crtassem.h` header file.

‎Doc/library/multiprocessing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,8 @@ The :mod:`multiprocessing` package mostly replicates the API of the
636636

637637
..method::terminate()
638638

639-
Terminate the process. OnUnix this is done using the``SIGTERM`` signal;
640-
on Windows:c:func:`TerminateProcess` is used. Note that exit handlers and
639+
Terminate the process. OnPOSIX this is done using the:py:const:`~signal.SIGTERM` signal;
640+
on Windows:c:func:`!TerminateProcess` is used. Note that exit handlers and
641641
finally clauses, etc., will not be executed.
642642

643643
Note that descendant processes of the process will *not* be terminated --

‎Doc/library/subprocess.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,8 @@ Instances of the :class:`Popen` class have the following methods:
859859

860860
..method::Popen.terminate()
861861

862-
Stop the child. On POSIX OSs the method sends SIGTERM to the
863-
child. On Windows the Win32 API function:c:func:`TerminateProcess` is called
862+
Stop the child. On POSIX OSs the method sends:py:const:`~signal.SIGTERM` to the
863+
child. On Windows the Win32 API function:c:func:`!TerminateProcess` is called
864864
to stop the child.
865865

866866

‎Doc/whatsnew/2.6.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,11 +2388,11 @@ changes, or look through the Subversion logs for all the details.
23882388
using the format character ``'?'``.
23892389
(Contributed by David Remahl.)
23902390

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`
23942394
signal, and all these methods are aliases for the Win32 API function
2395-
:c:func:`TerminateProcess`.
2395+
:c:func:`!TerminateProcess`.
23962396
(Contributed by Christian Heimes.)
23972397

23982398
* A new variable in the:mod:`sys` module,:attr:`float_info`, is an

‎Doc/whatsnew/2.7.rst

Lines changed: 87 additions & 83 deletions
Large diffs are not rendered by default.

‎Doc/whatsnew/3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Some smaller changes made to the core Python language are:
169169
... if '<critical>' in line:
170170
... outfile.write(line)
171171

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
173173
needed and is now deprecated.
174174

175175
(Contributed by Georg Brandl and Mattias Brändström;

‎Doc/whatsnew/3.2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ Several new and useful functions and methods have been added:
741741

742742
Two methods have been deprecated:
743743

744-
*:meth:`xml.etree.ElementTree.getchildren` use ``list(elem)`` instead.
745-
*:meth:`xml.etree.ElementTree.getiterator` use ``Element.iter`` instead.
744+
*:meth:`!xml.etree.ElementTree.getchildren` use ``list(elem)`` instead.
745+
*:meth:`!xml.etree.ElementTree.getiterator` use ``Element.iter`` instead.
746746

747747
For details of the update, see `Introducing ElementTree
748748
<https://web.archive.org/web/20200703234532/http://effbot.org/zone/elementtree-13-intro.htm>`_
@@ -2680,7 +2680,7 @@ require changes to your code:
26802680

26812681
(Contributed by Georg Brandl;:issue:`5675`.)
26822682

2683-
* The previously deprecated:func:`contextlib.nested` function has been removed
2683+
* The previously deprecated:func:`!contextlib.nested` function has been removed
26842684
in favor of a plain:keyword:`with` statement which can accept multiple
26852685
context managers. The latter technique is faster (because it is built-in),
26862686
and it does a better job finalizing multiple context managers when one of them

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp