FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-59705: Document OS thread name change by vstinner · Pull Request #128800 · python/cpython · GitHub

/ cpython Public
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
10 changes: 7 additions & 3 deletions Doc/library/threading.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ since it is impossible to detect the termination of alien threads.
This method will raise a :exc:`RuntimeError` if called more than once
on the same thread object.

If supported, set the operating system thread name to
:attr:`threading.Thread.name`. The name can be truncated depending on the
operating system thread name limits.

.. versionchanged:: 3.14
Set the operating system thread name.

.. method:: run()

Method representing the thread's activity.
Expand Down Expand Up @@ -443,9 +450,6 @@ since it is impossible to detect the termination of alien threads.
running thread is renamed. (Setting the *name* attribute of a
different thread only updates the Python Thread object.)

.. versionchanged:: 3.14
Set the operating system thread name.

.. method:: getName()
setName()

Expand Down
7 changes: 7 additions & 0 deletions Doc/whatsnew/3.14.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,13 @@ sys.monitoring
* Two new events are added: :monitoring-event:`BRANCH_LEFT` and
:monitoring-event:`BRANCH_RIGHT`. The ``BRANCH`` event is deprecated.

threading
---------

* :meth:`threading.Thread.start` now sets the operating system thread name
to :attr:`threading.Thread.name`.
(Contributed by Victor Stinner in :gh:`59705`.)

tkinter
-------

Expand Down

Back | FazBrowse Home | New Git URL