(self)
Return the next message in a one-time iteration.
Return the next message in a one-time iteration.
Return the next message in a one - time iteration .
def next(self):
        """Return the next message in a one-time iteration."""
        if not hasattr(self, '_onetime_keys'):
            self._onetime_keys = self.iterkeys()
        while True:
            try:
                return self[next(self._onetime_keys)]
            except StopIteration:
                return None
            except KeyError:
                continue
def next ( self ) : if not hasattr ( self , '_onetime_keys' ) : self . _onetime_keys = self . iterkeys ( ) while True : try : return self [ next ( self . _onetime_keys ) ] except StopIteration : return None except KeyError : continue