From b1dd5572d3815c1d18a0ccdecaff6db12c167cce Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 4 Sep 2013 10:33:11 +0300 Subject: [PATCH] Add docstring for threading.main_thread(). --- Lib/threading.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/threading.py b/Lib/threading.py index 2c06d99ab5..b6d19d5848 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 -- 2.50.1