All pastes #828775 Raw Edit

Anonymous

public text v1 · immutable
#828775 ·published 2007-12-22 18:53 UTC
rendered paste body
def ListItemsIterator(self):
    """A generator that yields a n-tuple with all items of a row."""
    ncols = self.GetColumnCount()
    for item in self.GetItemCount():
        values = []
        for col in range(ncols):
            values.Append(self.GetItem(item, col))
        yield values