Noob can't make threads work

Grant Edwards grante at
Tue Mar 1 21:33:35 CET 2005

On 2005-03-01, Steve Horsley <shoot at the.moon> wrote:

>>>t1 = threading.Thread(target=fiddle())
>>>t2 = threading.Thread(target=fiddle())
>> t1 = threading.Thread(target=fiddle)
>> t2 = threading.Thread(target=fiddle)
> Doh! Slap that forehead! 
> Of course, I was calling fiddle() and using the
> return value (None) as the target argument. And
> a Thread with a target of None does nothing
> when start()ed.

Been there, done that.

Grant Edwards                   grante             Yow!  BELA LUGOSI is my
                                  at               co-pilot...

More information about the Python-list mailing list