Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

thread with args python

dRecieved = connFile.readline()
processThread = threading.Thread(target=processLine, args=(dRecieved,))  # <- note extra ','
processThread.start()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #thread #args #python
ADD COMMENT
Topic
Name
5+9 =