]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36084: Add threading Native ID information to What's New documentation (GH-14845)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jul 2019 21:49:23 +0000 (14:49 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2019 21:49:23 +0000 (14:49 -0700)
(cherry picked from commit 84846b0187919551b1b08dca447658bbbbb710b1)

Co-authored-by: Jake Tesler <jake.tesler@gmail.com>
Doc/library/threading.rst
Doc/whatsnew/3.8.rst

index 9ffd5cd581793ae65d8f40367d55925a67db2350..eb9da2b911974573f7a437b0ab3ae3290001adbf 100644 (file)
@@ -363,7 +363,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
 
index f8cc3304b2078f2c8e4a9d51aea5b022a8fc6910..8cfe88085de8e02ab998c6b7f8cee9440f6f4ca3 100644 (file)
@@ -765,10 +765,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