ID EN
Threading

enumerate

Python 3.11

Return a list of all Thread objects currently active. The list includes daemonic threads and dummy thread objects created by current_thread(). It excludes terminated threads and threads that have not yet been started. However, the main thread is always part of the result, even when terminated.

Syntax

PYTHON
threading.enumerate()

See Also

Thread current_thread()