commit | b1dd5572d3815c1d18a0ccdecaff6db12c167cce | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Sep 04 10:33:11 2013 +0300 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Sep 04 10:33:11 2013 +0300 |
tree | 70891ceb57163e3d821c3e181fe1c7f64a983d20 | |
parent | 58b5c5ad144242b6ac6f5d155e69e124be36af48 [diff] [blame] |
Add docstring for threading.main_thread().
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 @@ 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