How to make non-blocking raw_input when using eventlet.monkey_patch() and why it block everything, even when executed on another thread?
问题 I wrote this minimum code to explain my case: import threading import time import eventlet eventlet.monkey_patch() def printing_function(): while True: # here i want to do some work print "printing" time.sleep(1) if __name__ == '__main__': thread = threading.Thread(target=printing_function) thread.start() while True: # here i want to wait for users input raw_input("raw input\n") print "inside main loop" time.sleep(1) Even i have 2 threads, both of them are blocked when i call raw_input. When