Issue 8262: bad wording in error message attempting to start a Thread twice (original) (raw)

Issue8262

Created on 2010-03-30 05:09 by ggenellina, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
threading.diff ggenellina,2010-03-30 05:09
Messages (3)
msg101918 - (view) Author: Gabriel Genellina (ggenellina) Date: 2010-03-30 05:09
Steve Holden, in <http://permalink.gmane.org/gmane.comp.python.general/658347>, about the RuntimeError you get when a Thread object is started twice: «"thread already started" implies that the thread is running, but you actually get the same message if you try to start any terminated thread (including a canceled one), so "threads cannot be restarted" might be a better message. Or, better still, "Threads can only be started once".» This patch fixes the wording as suggested.
msg102432 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-04-06 03:21
Yes, the proposed wording is more suitable in the scenarios when the error is encountered. Also saw there is already a test (test_start_thread_again), which covers this. There is no harm in changing the wording.
msg102434 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-04-06 03:36
Fixed in r79817, r79819 and r79821. Thanks for the report and the patch, Gabriel.
History
Date User Action Args
2022-04-11 14:56:59 admin set github: 52509
2010-04-06 03:36:48 orsenthil set status: open -> closedresolution: accepted -> fixedmessages: +
2010-04-06 03:21:26 orsenthil set nosy: + orsenthilmessages: + assignee: orsenthilresolution: accepted
2010-03-30 05:09:41 ggenellina create