summaryrefslogtreecommitdiffstats
path: root/Doc/library/threading.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-23 21:23:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-23 21:23:38 (GMT)
commit9e0ae5398097e56490bcc720fe7ca56d50aec175 (patch)
treeaa3316a3e4c42c77d968d70962c9b4b449ec5821 /Doc/library/threading.rst
parent78ede7c96d016eb0149c876bcb32633e3182e904 (diff)
downloadcpython-9e0ae5398097e56490bcc720fe7ca56d50aec175.zip
cpython-9e0ae5398097e56490bcc720fe7ca56d50aec175.tar.gz
cpython-9e0ae5398097e56490bcc720fe7ca56d50aec175.tar.bz2
Issue #18757: Improved cross-references in the concurrent package.
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r--Doc/library/threading.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 1bcf0a2..5eb0069 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -63,7 +63,7 @@ This module defines the following functions:
Set a trace function for all threads started from the :mod:`threading` module.
The *func* will be passed to :func:`sys.settrace` for each thread, before its
- :meth:`run` method is called.
+ :meth:`~Thread.run` method is called.
.. function:: setprofile(func)
@@ -72,7 +72,7 @@ This module defines the following functions:
Set a profile function for all threads started from the :mod:`threading` module.
The *func* will be passed to :func:`sys.setprofile` for each thread, before its
- :meth:`run` method is called.
+ :meth:`~Thread.run` method is called.
.. function:: stack_size([size])
@@ -825,10 +825,11 @@ This class represents an action that should be run only after a certain amount
of time has passed --- a timer. :class:`Timer` is a subclass of :class:`Thread`
and as such also functions as an example of creating custom threads.
-Timers are started, as with threads, by calling their :meth:`start` method. The
-timer can be stopped (before its action has begun) by calling the :meth:`cancel`
-method. The interval the timer will wait before executing its action may not be
-exactly the same as the interval specified by the user.
+Timers are started, as with threads, by calling their :meth:`~Timer.start`
+method. The timer can be stopped (before its action has begun) by calling the
+:meth:`~Timer.cancel` method. The interval the timer will wait before
+executing its action may not be exactly the same as the interval specified by
+the user.
For example::