@@ -254,7 +254,7 @@ The instance's values will be different for separate threads.
254
254
A class that represents thread-local data.
255
255
256
256
For more details and extensive examples, see the documentation string of the
257
- :mod: `_threading_local ` module: :source: `Lib/_threading_local.py `.
257
+ :mod: `! _threading_local ` module: :source: `Lib/_threading_local.py `.
258
258
259
259
260
260
.. _thread-objects :
@@ -267,7 +267,7 @@ thread of control. There are two ways to specify the activity: by passing a
267
267
callable object to the constructor, or by overriding the :meth: `~Thread.run `
268
268
method in a subclass. No other methods (except for the constructor) should be
269
269
overridden in a subclass. In other words, *only * override the
270
- :meth: ` ~Thread. __init__ ` and :meth: `~Thread.run ` methods of this class.
270
+ `` __init__() ` ` and :meth: `~Thread.run ` methods of this class.
271
271
272
272
Once a thread object is created, its activity must be started by calling the
273
273
thread's :meth: `~Thread.start ` method. This invokes the :meth: `~Thread.run `
@@ -319,7 +319,7 @@ since it is impossible to detect the termination of alien threads.
319
319
are:
320
320
321
321
*group * should be ``None ``; reserved for future extension when a
322
- :class: `ThreadGroup ` class is implemented.
322
+ :class: `! ThreadGroup ` class is implemented.
323
323
324
324
*target * is the callable object to be invoked by the :meth: `run ` method.
325
325
Defaults to ``None ``, meaning nothing is called.
@@ -991,7 +991,7 @@ This class represents an action that should be run only after a certain amount
991
991
of time has passed --- a timer. :class: `Timer ` is a subclass of :class: `Thread `
992
992
and as such also functions as an example of creating custom threads.
993
993
994
- Timers are started, as with threads, by calling their :meth: `~ Timer.start `
994
+ Timers are started, as with threads, by calling their :meth: `Timer.start <Thread.start> `
995
995
method. The timer can be stopped (before its action has begun) by calling the
996
996
:meth: `~Timer.cancel ` method. The interval the timer will wait before
997
997
executing its action may not be exactly the same as the interval specified by
@@ -1129,10 +1129,10 @@ As an example, here is a simple way to synchronize a client and server thread::
1129
1129
Using locks, conditions, and semaphores in the :keyword: `!with ` statement
1130
1130
-------------------------------------------------------------------------
1131
1131
1132
- All of the objects provided by this module that have :meth: ` acquire ` and
1133
- :meth: ` release ` methods can be used as context managers for a :keyword: `with `
1134
- statement. The :meth: ` acquire ` method will be called when the block is
1135
- entered, and :meth: ` release ` will be called when the block is exited. Hence,
1132
+ All of the objects provided by this module that have `` acquire ` ` and
1133
+ `` release ` ` methods can be used as context managers for a :keyword: `with `
1134
+ statement. The `` acquire ` ` method will be called when the block is
1135
+ entered, and `` release ` ` will be called when the block is exited. Hence,
1136
1136
the following snippet::
1137
1137
1138
1138
with some_lock:
0 commit comments