]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor change on threading.Thread.native_id documentation. (GH-18129)
authorAntoine <43954001+awecx@users.noreply.github.com>
Fri, 12 Jun 2020 22:50:18 +0000 (00:50 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 22:50:18 +0000 (15:50 -0700)
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

index 3a446adfac8c5a046376294998741c27f9bb0599..458e39bf721c68a241f1e66f1c1427f466d84cef 100644 (file)
@@ -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::