Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Tuesday, July 14, 2015

Python TypeError: start_new_thread expected at least 2 arguments, got 1

>>>
>>> import thread
>>>
>>>
>>>
>>> def fun1():
...     print "hi"
...
>>>
>>>
>>>
>>> thread.start_new_thread(fun1)
Traceback (most recent call last):
  File "", line 1, in
TypeError: start_new_thread expected at least 2 arguments, got 1
>>>

>>>
>>>

No comments:

Post a Comment