Skip to content

Commit 7026737

Browse files
bpo-36084: Add threading Native ID information to What's New documentation (GH-14845)
(cherry picked from commit 84846b0) Co-authored-by: Jake Tesler <[email protected]>
1 parent 0f9efbc commit 7026737

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ since it is impossible to detect the termination of alien threads.
363363
system-wide) from the time the thread is created until the thread
364364
has been terminated.
365365

366-
.. availability:: Require :func:`get_native_id` function.
366+
.. availability:: Requires :func:`get_native_id` function.
367367

368368
.. versionadded:: 3.8
369369

Doc/whatsnew/3.8.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,18 @@ in a standardized and extensible format, and offers several other benefits.
765765
threading
766766
---------
767767

768-
Add a new :func:`threading.excepthook` function which handles uncaught
769-
:meth:`threading.Thread.run` exception. It can be overridden to control how
770-
uncaught :meth:`threading.Thread.run` exceptions are handled.
771-
(Contributed by Victor Stinner in :issue:`1230540`.)
768+
* Add a new :func:`threading.excepthook` function which handles uncaught
769+
:meth:`threading.Thread.run` exception. It can be overridden to control how
770+
uncaught :meth:`threading.Thread.run` exceptions are handled.
771+
(Contributed by Victor Stinner in :issue:`1230540`.)
772+
773+
* Add a new
774+
:func:`threading.get_native_id` function and a :data:`~threading.Thread.native_id`
775+
attribute to the :class:`threading.Thread` class. These return the native
776+
integral Thread ID of the current thread assigned by the kernel.
777+
This feature is only available on certain platforms, see
778+
:func:`get_native_id <threading.get_native_id>` for more information.
779+
(Contributed by Jake Tesler in :issue:`36084`.)
772780

773781

774782
tokenize

0 commit comments

Comments
 (0)