Fil de python avec paramètres
thread = threading.Thread(target=function, args=(arg1, arg2), kwargs=dict(x=3,delay=0.25))
Arno Deceuninck
thread = threading.Thread(target=function, args=(arg1, arg2), kwargs=dict(x=3,delay=0.25))
dRecieved = connFile.readline()
processThread = threading.Thread(target=processLine, args=(dRecieved,)) # <- note extra ','
processThread.start()