diff --git a/Lib/threading.py b/Lib/threading.py index 2c06d99ab56..b6d19d58483 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