summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine <43954001+awecx@users.noreply.github.com>2020-06-12 22:50:18 (GMT)
committerGitHub <noreply@github.com>2020-06-12 22:50:18 (GMT)
commita6ac2391627aa3760ed9e8cf4f7e6e82878e5035 (patch)
tree2b13ca25e18c6b496751429c5b2a986043096c67 /Doc
parent80d827c3cb041ae72b9b0572981c50bdd1fe2cab (diff)
downloadcpython-a6ac2391627aa3760ed9e8cf4f7e6e82878e5035.zip
cpython-a6ac2391627aa3760ed9e8cf4f7e6e82878e5035.tar.gz
cpython-a6ac2391627aa3760ed9e8cf4f7e6e82878e5035.tar.bz2
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
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/threading.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 3a446ad..458e39b 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::