Ognjen Bezanov <ognjen at mailshack.com> writes: > But if I run the loop directly (i.e. not using threads, just calling the > function) it works just fine. What could the problem be? You have to say args=(cmddata,) with the comma inside the parens, to make a seqence instead of a parenthesized expression.