diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-09-04 07:01:07 +0300 |
|---|---|---|
| committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-09-04 07:01:07 +0300 |
| commit | 58b5c5ad144242b6ac6f5d155e69e124be36af48 (patch) | |
| tree | 162a477828b8c8994d0ecb1c0d5ad409b802a099 /Doc/library/threading.rst | |
| parent | 3c561456380ff54efb3784a92ba74ee904470b35 (diff) | |
| download | cpython-git-58b5c5ad144242b6ac6f5d155e69e124be36af48.tar.gz | |
Issue #18882: Add threading.main_thread() function.
Diffstat (limited to 'Doc/library/threading.rst')
| -rw-r--r-- | Doc/library/threading.rst | 9 |
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 |
