示例#1
0
 def next_item(self, space):
     r_value = self.get_current_value()
     key = self._current_index()
     if key is None:
         return None, None
     self.index += 1
     self.finished = self.is_finished()
     return wrap_array_key(space, key), r_value
示例#2
0
 def next_item(self, space):
     r_value = self.get_current_value()
     key = self._current_index()
     if key is None:
         return None, None
     self.index += 1
     self.finished = self.is_finished()
     return wrap_array_key(space, key), r_value
示例#3
0
 def key(self, interp):
     key = self._current_index()
     if key is None:
         return None
     return wrap_array_key(interp.space, key)
示例#4
0
 def next_item(self, space):
     self.remaining -= 1
     self.finished = self.remaining == 0
     key, w_value = self.dctiter.next()
     return wrap_array_key(space, key), w_value
示例#5
0
 def key(self, interp):
     key = self._current_index()
     if key is None:
         return None
     return wrap_array_key(interp.space, key)
示例#6
0
 def next_item(self, space):
     self.remaining -= 1
     self.finished = self.remaining == 0
     key, w_value = self.dctiter.next()
     return wrap_array_key(space, key), w_value