raises the same exception.
-.. method:: Thread.getName()
- Thread.setName()
-
- Old API for :attr:`~Thread.name`.
-
-
.. attribute:: Thread.name
A string used for identification purposes only. It has no semantics.
constructor.
+.. method:: Thread.getName()
+ Thread.setName()
+
+ Old getter/setter API for :attr:`~Thread.name`; use it directly as a property
+ instead.
+
+
.. attribute:: Thread.ident
The 'thread identifier' of this thread or ``None`` if the thread has not been
returns a list of all alive threads.
-.. method:: Thread.isDaemon()
- Thread.setDaemon()
-
- Old API for :attr:`~Thread.daemon`.
-
-
.. attribute:: Thread.daemon
The thread's daemon flag. This must be set before :meth:`start` is called,
The entire Python program exits when no alive non-daemon threads are left.
+.. method:: Thread.isDaemon()
+ Thread.setDaemon()
+
+ Old getter/setter API for :attr:`~Thread.daemon`; use it directly as a
+ property instead.
+
+
.. _lock-objects:
Lock Objects