Commit 1006bfe0 authored by Andrew Svetlov's avatar Andrew Svetlov

Add docstring for threading.main_thread().

parent 3a580e7a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment