[Python-checkins] cpython: Add docstring for threading.main_thread().

andrew.svetlov python-checkins at python.org
Wed Sep 4 09:33:42 CEST 2013


http://hg.python.org/cpython/rev/f18fb7f39c24
changeset:   85521:f18fb7f39c24
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Wed Sep 04 10:33:11 2013 +0300
summary:
  Add docstring for threading.main_thread().

files:
  Lib/threading.py |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list