1
vote
0answers
118 views

Python — How to make an event loop in the console

Using Python 2.7, how would I make an event loop that I can run my program inside? My idea is that the script will run, and the event loop will detect the press of a certain key (q in this case), that ...
0
votes
0answers
78 views

ZMQError: Socket operation on non-socket when trying to stop ioloop

When I'm calling ZmqReceiver close() method I'm getting this error. File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File ...