]> granicus.if.org Git - python/commitdiff
Add docstring for threading.main_thread().
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 4 Sep 2013 07:33:11 +0000 (10:33 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 4 Sep 2013 07:33:11 +0000 (10:33 +0300)
Lib/threading.py

index 2c06d99ab56dae29fb296a9294e0966ba925048c..b6d19d584838cc5d9e98d9890d75b94ad241aaa6 100644 (file)
@@ -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