From: Andrew Svetlov Date: Wed, 4 Sep 2013 07:33:11 +0000 (+0300) Subject: Add docstring for threading.main_thread(). X-Git-Tag: v3.4.0a2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1dd5572d3815c1d18a0ccdecaff6db12c167cce;p=python Add docstring for threading.main_thread(). --- 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