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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to