Question about thread
Craig Ringer
craig at postnewspapers.com.au
Fri Nov 19 11:20:16 EST 2004
More information about the Python-list mailing list
Fri Nov 19 11:20:16 EST 2004
- Previous message (by thread): Question about thread
- Next message (by thread): Question about thread
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 found this: http://www.faqts.com/knowledge_base/view.phtml/aid/1364 -- Craig Ringer
- Previous message (by thread): Question about thread
- Next message (by thread): Question about thread
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list