parameters: (self)
docstring: Return the next message in a one-time iteration.
docstring_summary: Return the next message in a one-time iteration.
docstring_tokens: Return the next message in a one - time iteration .
function: 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[self._onetime_keys.next()]
              except StopIteration:
                  return None
              except KeyError:
                  continue
function_tokens: def next ( self ) : if not hasattr ( self , '_onetime_keys' ) : self . _onetime_keys = self . iterkeys ( ) while True : try : return self [ self . _onetime_keys . next ( ) ] except StopIteration : return None except KeyError : continue