Question about thread
craig at postnewspapers.com.au
Fri Nov 19 17:20:16 CET 2004
On Fri, 2004-11-19 at 23:45, Valkyrie wrote:
> When I do it line by line in python's console, I have similar result to youl.
> But when I try to run it in a file, say:
> python demo.py
> It just returns me nothing. I have no idea on this right now...
You need to cause the main thread to wait on the child threads until
they've all finished, otherwise - as Peter Hickman just mentioned - your
script will terminate and all threads will end. Ten seconds on Google
More information about the Python-list