My GAE application receives several files in the upload (can be from 0 to N). I have there list in files_arguments list:
files_arguments = self.request.arguments()
I need to take first 5 elements, process them. Then take next 5 elements and process. And so on. Last group, of course, can have less than 5 elements.
What should be the code to do so? (I will not use files_arguments after that, so elements can be deleted from the list once processed)
Here’s the low-tech approach. It doesn’t throw away the last group if it’s smaller than
n.