[Python-checkins] Minor change on threading.Thread.native_id documentation. (GH-18129)
Antoine
webhook-mailer at python.org
Fri Jun 12 18:50:27 EDT 2020
https://github.com/python/cpython/commit/a6ac2391627aa3760ed9e8cf4f7e6e82878e5035
commit: a6ac2391627aa3760ed9e8cf4f7e6e82878e5035
branch: master
author: Antoine <43954001+awecx at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020年06月12日T15:50:18-07:00
summary:
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
files:
M Doc/library/threading.rst
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 3a446adfac8c5..458e39bf721c6 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::
More information about the Python-checkins
mailing list