[wingide-users] thread stops at raw_input() in other thread
Sebastian Fey
sebastian.fey at web.de
Thu Nov 8 06:42:34 MST 2007
Hi,
sorry its me again =)
there seems to be another threading issue.
when i debug the following code it stops at the raw_input.
(also the main-thread stops)
is there a workaround?
#####
import threading, time
class Test( threading.Thread ):
def __init__(self):
threading.Thread.__init__( self )
self.start()
self.main_thread()
def run( self ):
while True:
time.sleep(1)
raw_input("test_thread >>")
def main_thread( self ):
while True:
time.sleep(1)
print "main_thread"
if __name__ == "__main__":
Test()
More information about the wingide-users
mailing list