Add docstring for threading.main_thread().
This commit is contained in:
parent
58b5c5ad14
commit
b1dd5572d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue