Interesting Thread Gotcha

Peter Otten __peter__ at
Thu Jan 17 19:07:04 CET 2008

Hendrik van Rooyen wrote:

> "Duncan Booth" <dunc...d.invalid> wrote:
>> Given that the start_new_thread function never actually got called, what 
>> code exactly do you expect to complain about the absence of a tuple?
> I don't understand this assertion.
> I thought that start_new_thread was called with a missing comma in 
> its argument list, which had the effect that I am complaining about.
> Putting the comma in place solved the problem, without any other
> changes, so why do you say that start_new_thread was not called?

Well, when kbd_driver() is called the kbd_q queue is probably empty, and
as kbd_driver() runs in the main thread, who could ever put something into
that queue? The function will therefore never terminate.


More information about the Python-list mailing list