threading.Thread
¶
-
class
threading.
Thread
(group=None, target=None, name=None, args=(), kwargs=None, verbose=None)[source]¶ A class that represents a thread of control.
This class can be safely subclassed in a limited fashion.
Methods¶
_Thread__bootstrap () |
|
_Thread__bootstrap_inner () |
|
_Thread__delete () |
Remove current thread from the dict of currently running threads. |
_Thread__exc_clear |
exc_clear() -> None |
_Thread__exc_info () -> (type, value, traceback) |
Return information about the most recent exception caught by an except clause in the current stack frame or in an older stack frame. |
_Thread__stop () |
|
__format__ |
default object formatter |
__init__ ([group, target, name, args, ...]) |
This constructor should always be called with keyword arguments. |
__new__ ((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__repr__ () |
|
__sizeof__ (() -> int) |
size of object in memory, in bytes |
__subclasshook__ |
Abstract classes can override this to customize issubclass(). |
_note (format, *args) |
|
_reset_internal_locks () |
|
_set_daemon () |
|
_set_ident () |
|
getName () |
|
isAlive () |
Return whether the thread is alive. |
isDaemon () |
|
is_alive () |
Return whether the thread is alive. |
join ([timeout]) |
Wait until the thread terminates. |
run () |
Method representing the thread’s activity. |
setDaemon (daemonic) |
|
setName (name) |
|
start () |
Start the thread’s activity. |