diff options
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 2c06d99..b6d19d5 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -918,6 +918,11 @@ def _pickSomeNonDaemonThread(): return None def main_thread(): + """Return the main thread object. + + In normal conditions, the main thread is the thread from which the + Python interpreter was started. + """ return _main_thread # get thread-local implementation, either from the thread |