parameters: (self)
docstring: Special paging functionality
docstring_summary: Special paging functionality
docstring_tokens: Special paging functionality
function: def __next__(self):
          """Special paging functionality"""
          if self.iter is None:
              self.iter = iter(self.objs)
          try:
              return next(self.iter)
          except StopIteration:
              self.iter = None
              self.objs = []
              if int(self.page) < int(self.total_pages):
                  self.page += 1
                  self._connection.get_response(self.action, self.params, self.page, self)
                  return next(self)
              else:
                  raise
function_tokens: def __next__ ( self ) : if self . iter is None : self . iter = iter ( self . objs ) try : return next ( self . iter ) except StopIteration : self . iter = None self . objs = [ ] if int ( self . page ) < int ( self . total_pages ) : self . page += 1 self . _connection . get_response ( self . action , self . params , self . page , self ) return next ( self ) else : raise