def rawCountsForOrder(self, allCounts, order): for history, values in assertIsSorted(allCounts): if len(history) < order: continue history, oldest = history[:order - 1], history[order - 1] yield history, oldest, values
def rawCountsForOrder(self, allCounts, order): for history, values in assertIsSorted(allCounts): if len(history) < order: continue history, oldest = history[:order-1], history[order-1] yield history, oldest, values