I’m making a program that listens for commands both from a looping raw_input and repeatedly checking a file for updates. Is there a way to do this? Basically, there’s a loop with a time.sleep(1) for checking the file, and a while loop with raw_input. Multiprocessing doesn’t seem to be what I need.
I’m making a program that listens for commands both from a looping raw_input and
Share
So it seems the answer is “threading”. Seems promising.