ID EN
Threading

main_thread

Python 3.11

Return the main Thread object. In normal conditions, the main thread is the thread from which the Python interpreter was started.

Syntax

PYTHON
threading.main_thread()

See Also

Thread