mirror of https://github.com/python/cpython.git
gh-59705: Document OS thread name change (#128800)
This commit is contained in:
parent
43ef9587ae
commit
d786ac7f58
|
@ -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.
|
||||
|
@ -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()
|
||||
|
||||
|
|
|
@ -645,6 +645,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
|
||||
-------
|
||||
|
||||
|
|
Loading…
Reference in New Issue