mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Add docstring for threading.main_thread().
This commit is contained in:
parent
58b5c5ad14
commit
b1dd5572d3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue