def get_msgs(self):
        msgs = []
        while True:
            try:
                msgs.append(self.get_msg(block=False))
            except Empty:
                break
        return msgs
Get all messages that are currently ready.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/zmq/blockingkernelmanager.py/BlockingSubSocketChannel.get_msgs