summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2013-09-04 07:33:11 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2013-09-04 07:33:11 (GMT)
commitb1dd5572d3815c1d18a0ccdecaff6db12c167cce (patch)
tree70891ceb57163e3d821c3e181fe1c7f64a983d20 /Lib/threading.py
parent58b5c5ad144242b6ac6f5d155e69e124be36af48 (diff)
downloadcpython-b1dd5572d3815c1d18a0ccdecaff6db12c167cce.zip
cpython-b1dd5572d3815c1d18a0ccdecaff6db12c167cce.tar.gz
cpython-b1dd5572d3815c1d18a0ccdecaff6db12c167cce.tar.bz2
Add docstring for threading.main_thread().
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py5
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