From a6ac2391627aa3760ed9e8cf4f7e6e82878e5035 Mon Sep 17 00:00:00 2001 From: Antoine <43954001+awecx@users.noreply.github.com> Date: Sat, 13 Jun 2020 00:50:18 +0200 Subject: [PATCH] Minor change on threading.Thread.native_id documentation. (GH-18129) Remove duplication in `threading.Thread.native_id` documentation, so resulting documentation is more consistent with the `threading.Thread.ident`. Issue initially raised [here](https://github.com/python/python-docs-fr/pull/1122#discussion_r369236634) (in French). No issue associated to this PR. Automerge-Triggered-By: @csabella --- Doc/library/threading.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 3a446adfac8..458e39bf721 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -349,13 +349,12 @@ since it is impossible to detect the termination of alien threads. .. attribute:: native_id - The native integral thread ID of this thread. + The Thread ID (``TID``) of this thread, as assigned by the OS (kernel). This is a non-negative integer, or ``None`` if the thread has not been started. See the :func:`get_native_id` function. - This represents the Thread ID (``TID``) as assigned to the - thread by the OS (kernel). Its value may be used to uniquely identify - this particular thread system-wide (until the thread terminates, - after which the value may be recycled by the OS). + This value may be used to uniquely identify this particular thread + system-wide (until the thread terminates, after which the value + may be recycled by the OS). .. note::