diff options
author | Georg Brandl <georg@python.org> | 2009-01-02 20:10:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-02 20:10:05 (GMT) |
commit | 770b0be53eb8a0f518ada4c17ea07fc2bcb9d248 (patch) | |
tree | cf899f7146cdf7a73caa0167608226698860dd99 /Doc/library/threading.rst | |
parent | 574b1279d974b45064492ec53e7dd0a81a4ef0e0 (diff) | |
download | cpython-770b0be53eb8a0f518ada4c17ea07fc2bcb9d248.zip cpython-770b0be53eb8a0f518ada4c17ea07fc2bcb9d248.tar.gz cpython-770b0be53eb8a0f518ada4c17ea07fc2bcb9d248.tar.bz2 |
#4808: move old API below new API doc.
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r-- | Doc/library/threading.rst | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 01e7136..769afd4 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -278,12 +278,6 @@ impossible to detect the termination of alien threads. 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. @@ -291,6 +285,13 @@ impossible to detect the termination of alien threads. 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 @@ -309,12 +310,6 @@ impossible to detect the termination of alien threads. 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, @@ -325,6 +320,13 @@ impossible to detect the termination of alien threads. 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 |