From 1727e765c59fa35ddd7f10fd0adcb83e7c8fa793 Mon Sep 17 00:00:00 2001 From: radiant159 <156152320+radiantsb@users.noreply.github.com> Date: Wed, 3 Jun 2026 13:03:42 +1000 Subject: [PATCH 1/2] Update threading.py add a warning to Thread.run() docstring so that users are aware that Thread.start() is the correct way to start a thread's execution --- Lib/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/threading.py b/Lib/threading.py index abac31e25886fa..d20bfe81c302c5 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -1147,7 +1147,7 @@ def start(self): self._started.wait() # Will set ident and native_id def run(self): - """Method representing the thread's activity. + """Method representing the thread's activity. Use Thread.start() to start a thread's execution You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the From 21c2d79edd49d10b0aa36cfd979004a1d16d69e4 Mon Sep 17 00:00:00 2001 From: radiant159 <156152320+radiantsb@users.noreply.github.com> Date: Thu, 4 Jun 2026 16:40:00 +1000 Subject: [PATCH 2/2] Update threading.rst --- Doc/library/threading.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 5d9a7b6314b166..52f50def2986d8 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -578,7 +578,7 @@ since it is impossible to detect the termination of alien threads. .. method:: run() - Method representing the thread's activity. + Method representing the thread's activity. Use Thread.start() to start a thread's execution You may override this method in a subclass. The standard :meth:`run` method invokes the callable object passed to the object's constructor as