Noob can't make threads work

Steve Holden steve at holdenweb.com
Tue Mar 1 23:10:51 CET 2005


Grant Edwards wrote:
> 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.
> 
And, speaking of T-shirts, time for this week's reminder that PyCon is 
now only three weeks away!

regards
  Steve
-- 
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005                      http://www.pycon.org/
Steve Holden                           http://www.holdenweb.com/



More information about the Python-list mailing list