Skip to content

Commit 84846b0

Browse files
jaketeslervstinner
authored andcommitted
bpo-36084: Add threading Native ID information to What's New documentation (GH-14845)
1 parent eca7ffc commit 84846b0

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
@@ -371,7 +371,7 @@ since it is impossible to detect the termination of alien threads.
371371
system-wide) from the time the thread is created until the thread
372372
has been terminated.
373373

374-
.. availability:: Require :func:`get_native_id` function.
374+
.. availability:: Requires :func:`get_native_id` function.
375375

376376
.. versionadded:: 3.8
377377

Doc/whatsnew/3.8.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,10 +768,18 @@ in a standardized and extensible format, and offers several other benefits.
768768
threading
769769
---------
770770

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

776784

777785
tokenize

0 commit comments

Comments
 (0)