summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Tesler <jake.tesler@gmail.com>2019-07-30 21:41:46 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-07-30 21:41:46 (GMT)
commit84846b0187919551b1b08dca447658bbbbb710b1 (patch)
treec589c28dd13b15353c4b140a39a09f9c7ddddac7
parenteca7ffc61cf925eae5def8c64b05d47f24e60e1f (diff)
downloadcpython-84846b0187919551b1b08dca447658bbbbb710b1.zip
cpython-84846b0187919551b1b08dca447658bbbbb710b1.tar.gz
cpython-84846b0187919551b1b08dca447658bbbbb710b1.tar.bz2
bpo-36084: Add threading Native ID information to What's New documentation (GH-14845)
-rw-r--r--Doc/library/threading.rst2
-rw-r--r--Doc/whatsnew/3.8.rst16
2 files changed, 13 insertions, 5 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index f80eb22..7de12fb 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -371,7 +371,7 @@ since it is impossible to detect the termination of alien threads.
system-wide) from the time the thread is created until the thread
has been terminated.
- .. availability:: Require :func:`get_native_id` function.
+ .. availability:: Requires :func:`get_native_id` function.
.. versionadded:: 3.8
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 3f84e09..8442e4e 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -768,10 +768,18 @@ in a standardized and extensible format, and offers several other benefits.
threading
---------
-Add a new :func:`threading.excepthook` function which handles uncaught
-:meth:`threading.Thread.run` exception. It can be overridden to control how
-uncaught :meth:`threading.Thread.run` exceptions are handled.
-(Contributed by Victor Stinner in :issue:`1230540`.)
+* Add a new :func:`threading.excepthook` function which handles uncaught
+ :meth:`threading.Thread.run` exception. It can be overridden to control how
+ uncaught :meth:`threading.Thread.run` exceptions are handled.
+ (Contributed by Victor Stinner in :issue:`1230540`.)
+
+* Add a new
+ :func:`threading.get_native_id` function and a :data:`~threading.Thread.native_id`
+ attribute to the :class:`threading.Thread` class. These return the native
+ integral Thread ID of the current thread assigned by the kernel.
+ This feature is only available on certain platforms, see
+ :func:`get_native_id <threading.get_native_id>` for more information.
+ (Contributed by Jake Tesler in :issue:`36084`.)
tokenize