summaryrefslogtreecommitdiff
path: root/Doc/library/threading.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2013-09-04 07:01:07 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2013-09-04 07:01:07 +0300
commit58b5c5ad144242b6ac6f5d155e69e124be36af48 (patch)
tree162a477828b8c8994d0ecb1c0d5ad409b802a099 /Doc/library/threading.rst
parent3c561456380ff54efb3784a92ba74ee904470b35 (diff)
downloadcpython-git-58b5c5ad144242b6ac6f5d155e69e124be36af48.tar.gz
Issue #18882: Add threading.main_thread() function.
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r--Doc/library/threading.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 5eb00694ad..9aec63d008 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -57,6 +57,15 @@ This module defines the following functions:
and threads that have not yet been started.
+.. function:: main_thread()
+
+ Return the main :class:`Thread` object. In normal conditions, the
+ main thread is the thread from which the Python interpreter was
+ started.
+
+ .. versionadded:: 3.4
+
+
.. function:: settrace(func)
.. index:: single: trace function