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
def key(self, interp): key = self._current_index() if key is None: return None return wrap_array_key(interp.space, key)
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