(self)
Return an iterator over currently available (event, elem) pairs.

        Events are consumed from the internal event queue as they are
        retrieved from the iterator.
Return an iterator over currently available (event, elem) pairs.
Return an iterator over currently available ( event elem ) pairs .
def read_events(self):
        """Return an iterator over currently available (event, elem) pairs.

        Events are consumed from the internal event queue as they are
        retrieved from the iterator.
        """
        events = self._events_queue
        while events:
            event = events.popleft()
            if isinstance(event, Exception):
                raise event
            else:
                yield event
def read_events ( self ) : events = self . _events_queue while events : event = events . popleft ( ) if isinstance ( event , Exception ) : raise event else : yield event