Why my thread can't access the global data?

ddh doudehou at gmail.com
Wed Dec 21 08:41:36 CET 2005


Thank you, but I think it may be not this reason.

You see, when accept returns, the go_on will be checked in 'while
go_on:', so if it is set to be false, the loop will end. I have set a
0.5 second time out on the select() function. So the 'go_on' will be
checked at a frequency every 0.5 second at least.




Pelmen wrote:
> your main loop already on accept when your thread change the go_on imho
> try to input another string after 'quit'
> 
> and actually there is no need to use thread




More information about the Python-list mailing list