Add docstring for threading.main_thread().

This commit is contained in:
Andrew Svetlov 2013-09-04 10:33:11 +03:00
parent 58b5c5ad14
commit b1dd5572d3
1 changed files with 5 additions and 0 deletions

View 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