Multiple thread program problem

Mohan Mohta mohan.mohta at gmail.com
Wed Jun 3 18:23:50 EDT 2015


On Wednesday, June 3, 2015 at 4:01:13 PM UTC-5, Sam Raker wrote:
> proc(f) isn't a callable, it's whatever it returns. IIRC, you need to do something like 'start_new_thread(proc, (f,))'


If I execute something like 
t=thread.start_new_thread(proc,(f))

I get:

Traceback (most recent call last):
  File "./readfile1.py", line 19, in <module>
    t=thread.start_new_thread(proc,(f))
TypeError: 2nd arg must be a tuple



More information about the Python-list mailing list