]> granicus.if.org Git - python/commitdiff
Merged revisions 75969 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Oct 2009 22:23:02 +0000 (22:23 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Oct 2009 22:23:02 +0000 (22:23 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75969 | antoine.pitrou | 2009-10-30 23:19:09 +0100 (ven., 30 oct. 2009) | 5 lines

  Remove official documentation entry for thread._count() and make the
  docstring more descriptive instead.
........

Doc/library/_thread.rst
Modules/_threadmodule.c

index 373b1b08362a8c040a6a66a3164a7a17c5bc0d9e..cb624078ca66dd05fb2fe4200d59a7bc5c5fb0d8 100644 (file)
@@ -103,19 +103,6 @@ It defines the following constant and functions:
    Availability: Windows, systems with POSIX threads.
 
 
-.. function:: _count()
-
-   Return the number of currently running Python threads, excluding the main
-   thread.  The returned number comprises all threads created through
-   :func:`start_new_thread` as well as :class:`threading.Thread`, and not
-   yet finished.
-
-   This function is meant for internal and specialized purposes only. In
-   most applications :func:`threading.enumerate()` should be used instead.
-
-   .. versionadded:: 3.2
-
-
 Lock objects have the following methods:
 
 
index 81e89845a4ec22adff2baff90e39a3720be97885..fe63c4b6f23f25ea0464b02b4abe49ffc8dd76b5 100644 (file)
@@ -616,8 +616,14 @@ thread__count(PyObject *self)
 PyDoc_STRVAR(_count_doc,
 "_count() -> integer\n\
 \n\
-Return the number of currently running (sub)threads.\n\
-This excludes the main thread.");
+\
+Return the number of currently running Python threads, excluding \n\
+the main thread. The returned number comprises all threads created\n\
+through `start_new_thread()` as well as `threading.Thread`, and not\n\
+yet finished.\n\
+\n\
+This function is meant for internal and specialized purposes only.\n\
+In most applications `threading.enumerate()` should be used instead.");
 
 static PyObject *
 thread_stack_size(PyObject *self, PyObject *args)