From b65bf768b78cedfa816755c66e49552ce282b222 Mon Sep 17 00:00:00 2001 From: "antoine.pitrou" Date: Fri, 30 Oct 2009 22:19:09 +0000 Subject: [PATCH] Remove official documentation entry for thread._count() and make the docstring more descriptive instead. git-svn-id: http://svn.python.org/projects/python/trunk@75969 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Doc/library/thread.rst | 13 ------------- Modules/threadmodule.c | 10 ++++++++-- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/Doc/library/thread.rst b/Doc/library/thread.rst index ac9d1eb030..7e8d5c80d3 100644 --- a/Doc/library/thread.rst +++ b/Doc/library/thread.rst @@ -113,19 +113,6 @@ It defines the following constant and functions: .. versionadded:: 2.5 -.. 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:: 2.7 - - Lock objects have the following methods: diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index c962c79f85..c682af22ef 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -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) -- 2.11.4.GIT