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

Commit991e4e7

Browse files
sobolevnhugovk
andauthored
gh-101100: Fix sphinx warnings inthreading.rst (#108684)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent157b89e commit991e4e7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

‎Doc/library/threading.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ The instance's values will be different for separate threads.
272272
A class that represents thread-local data.
273273

274274
For more details and extensive examples, see the documentation string of the
275-
:mod:`_threading_local` module::source:`Lib/_threading_local.py`.
275+
:mod:`!_threading_local` module::source:`Lib/_threading_local.py`.
276276

277277

278278
.. _thread-objects:
@@ -285,7 +285,7 @@ thread of control. There are two ways to specify the activity: by passing a
285285
callable object to the constructor, or by overriding the:meth:`~Thread.run`
286286
method in a subclass. No other methods (except for the constructor) should be
287287
overridden in a subclass. In other words, *only* override the
288-
:meth:`~Thread.__init__` and:meth:`~Thread.run` methods of this class.
288+
``__init__()`` and:meth:`~Thread.run` methods of this class.
289289

290290
Once a thread object is created, its activity must be started by calling the
291291
thread's:meth:`~Thread.start` method. This invokes the:meth:`~Thread.run`
@@ -337,7 +337,7 @@ since it is impossible to detect the termination of alien threads.
337337
are:
338338

339339
*group* should be ``None``; reserved for future extension when a
340-
:class:`ThreadGroup` class is implemented.
340+
:class:`!ThreadGroup` class is implemented.
341341

342342
*target* is the callable object to be invoked by the:meth:`run` method.
343343
Defaults to ``None``, meaning nothing is called.
@@ -1009,7 +1009,7 @@ This class represents an action that should be run only after a certain amount
10091009
of time has passed --- a timer.:class:`Timer` is a subclass of:class:`Thread`
10101010
and as such also functions as an example of creating custom threads.
10111011

1012-
Timers are started, as with threads, by calling their:meth:`~Timer.start`
1012+
Timers are started, as with threads, by calling their:meth:`Timer.start <Thread.start>`
10131013
method. The timer can be stopped (before its action has begun) by calling the
10141014
:meth:`~Timer.cancel` method. The interval the timer will wait before
10151015
executing its action may not be exactly the same as the interval specified by
@@ -1147,10 +1147,10 @@ As an example, here is a simple way to synchronize a client and server thread::
11471147
Using locks, conditions, and semaphores in the:keyword:`!with` statement
11481148
-------------------------------------------------------------------------
11491149

1150-
All of the objects provided by this module that have:meth:`acquire` and
1151-
:meth:`release` methods can be used as context managers for a:keyword:`with`
1152-
statement. The:meth:`acquire` method will be called when the block is
1153-
entered, and:meth:`release` will be called when the block is exited. Hence,
1150+
All of the objects provided by this module that have``acquire`` and
1151+
``release`` methods can be used as context managers for a:keyword:`with`
1152+
statement. The``acquire`` method will be called when the block is
1153+
entered, and``release`` will be called when the block is exited. Hence,
11541154
the following snippet::
11551155

11561156
with some_lock:

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ Doc/library/tarfile.rst
124124
Doc/library/tempfile.rst
125125
Doc/library/termios.rst
126126
Doc/library/test.rst
127-
Doc/library/threading.rst
128127
Doc/library/time.rst
129128
Doc/library/tkinter.rst
130129
Doc/library/tkinter.scrolledtext.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp