I'd like to do some actions while waiting for a user input: I was thinking of:
var = raw_input("what are you thinking about")
while var == None:
dosomethingwhilewaiting()
print "input is:", var
but raw_input is blocking until a user input come in. Any ideas?
you can use threads.