Skip to content

Commit a6ac239

Browse files
authored
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](python/python-docs-fr#1122 (comment)) (in French). No issue associated to this PR. Automerge-Triggered-By: @csabella
1 parent 80d827c commit a6ac239

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/threading.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,12 @@ since it is impossible to detect the termination of alien threads.
349349

350350
.. attribute:: native_id
351351

352-
The native integral thread ID of this thread.
352+
The Thread ID (``TID``) of this thread, as assigned by the OS (kernel).
353353
This is a non-negative integer, or ``None`` if the thread has not
354354
been started. See the :func:`get_native_id` function.
355-
This represents the Thread ID (``TID``) as assigned to the
356-
thread by the OS (kernel). Its value may be used to uniquely identify
357-
this particular thread system-wide (until the thread terminates,
358-
after which the value may be recycled by the OS).
355+
This value may be used to uniquely identify this particular thread
356+
system-wide (until the thread terminates, after which the value
357+
may be recycled by the OS).
359358

360359
.. note::
361360

0 commit comments

Comments
 (0)