ive posted some other question in the past few days but they dont seem to appear...anyway ive researched my problem a bit more and ive narrowed it down o one question:
why do threads just exit even though the function i call using threads has raw_input() in it ?
Note: this happens while program is running in DOS, in the interpreter the threads act like i expect them to do, but in DOS they just exit
example:
------------------------------------------------------------------
import thread
def input():
data = raw_input()
return data
thread.start_ne w(input,())
------------------------------------------------------------------
this exits before i can input the data....why does this happen and how can i get passed it?
why do threads just exit even though the function i call using threads has raw_input() in it ?
Note: this happens while program is running in DOS, in the interpreter the threads act like i expect them to do, but in DOS they just exit
example:
------------------------------------------------------------------
import thread
def input():
data = raw_input()
return data
thread.start_ne w(input,())
------------------------------------------------------------------
this exits before i can input the data....why does this happen and how can i get passed it?
Comment