]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Some general cleanup of the threading module documentation, including
authorFred Drake <fdrake@acm.org>
Thu, 31 May 2001 20:24:37 +0000 (20:24 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 May 2001 20:24:37 +0000 (20:24 +0000)
fixing the reference to Thread.getDeamon() (should be isDaemon()).

This closes SF bug #429070.

Doc/lib/libthreading.tex

index eb0985f0b631fa58ec52ca13feb3d43366d1db97..e3f07ba06854aebe6181defe1b6cb02179f5adea 100644 (file)
@@ -68,9 +68,9 @@ The \method{acquire()} method blocks if necessary until it can return
 without making the counter negative.
 \end{funcdesc}
 
-\begin{classdesc}{Thread}{}
+\begin{classdesc*}{Thread}{}
 A class that represents a thread of control.  This class can be safely subclassed in a limited fashion.
-\end{classdesc}
+\end{classdesc*}
 
 Detailed interfaces for the objects are documented below.  
 
@@ -444,7 +444,7 @@ A thread can be flagged as a ``daemon thread''.  The significance
 of this flag is that the entire Python program exits when only
 daemon threads are left.  The initial value is inherited from the
 creating thread.  The flag can be set with the \method{setDaemon()}
-method and retrieved with the \method{getDaemon()} method.
+method and retrieved with the \method{isDaemon()} method.
 
 There is a ``main thread'' object; this corresponds to the
 initial thread of control in the Python program.  It is not a
@@ -465,32 +465,28 @@ threads.
 This constructor should always be called with keyword
 arguments.  Arguments are:
 
-\var{group}
-Should be \code{None}; reserved for future extension when a
-\class{ThreadGroup} class is implemented.
+\var{group} should be \code{None}; reserved for future extension when
+a \class{ThreadGroup} class is implemented.
 
-\var{target}
-Callable object to be invoked by the \method{run()} method.
-Defaults to \code{None}, meaning nothing is called.
+\var{target} is the callable object to be invoked by the
+\method{run()} method.  Defaults to \code{None}, meaning nothing is
+called.
 
-\var{name}
-The thread name.  By default, a unique name is constructed of the form
-``Thread-\var{N}'' where \var{N} is a small decimal number.
+\var{name} is the thread name.  By default, a unique name is
+constructed of the form ``Thread-\var{N}'' where \var{N} is a small
+decimal number.
 
-\var{args}
-Argument tuple for the target invocation.  Defaults to \code{()}.
+\var{args} is the argument tuple for the target invocation.  Defaults
+to \code{()}.
 
-\var{kwargs}
-Keyword argument dictionary for the target invocation.
-Defaults to \code{\{\}}.
+\var{kwargs} is a dictionary of keyword arguments for the target
+invocation.  Defaults to \code{\{\}}.
 
 If the subclass overrides the constructor, it must make sure
 to invoke the base class constructor (\code{Thread.__init__()})
 before doing anything else to the thread.
 \end{classdesc}
 
-
-
 \begin{methoddesc}{start}{}
 Start the thread's activity.
 
@@ -499,8 +495,6 @@ arranges for the object's \method{run()} method to be invoked in a
 separate thread of control.
 \end{methoddesc}
 
-
-
 \begin{methoddesc}{run}{}
 Method representing the thread's activity.
 
@@ -511,7 +505,6 @@ arguments taken from the \var{args} and \var{kwargs} arguments,
 respectively.
 \end{methoddesc}
 
-
 \begin{methoddesc}{join}{\optional{timeout}}
 Wait until the thread terminates.
 This blocks the calling thread until the thread whose \method{join()}
@@ -531,8 +524,6 @@ It is an error to attempt to \method{join()} a thread before it has
 been started.
 \end{methoddesc}
 
-
-
 \begin{methoddesc}{getName}{}
 Return the thread's name.
 \end{methoddesc}
@@ -565,4 +556,3 @@ The initial value is inherited from the creating thread.
 The entire Python program exits when no active non-daemon
 threads are left.
 \end{methoddesc}
-