Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1dd557

Browse files
committed
Add docstring for threading.main_thread().
1 parent 58b5c5a commit b1dd557

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/threading.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,11 @@ def _pickSomeNonDaemonThread():
918918
return None
919919

920920
def main_thread():
921+
"""Return the main thread object.
922+
923+
In normal conditions, the main thread is the thread from which the
924+
Python interpreter was started.
925+
"""
921926
return _main_thread
922927

923928
# get thread-local implementation, either from the thread

0 commit comments

Comments
 (0)