I have an array of bytes and what I want to do is take four bytes from the array, do something with it and then take the next four bytes. Is it at all possible to do this is a list comprehension or make a for loop take four items from the array instead of one?
Share
Another option is using itertools
http://docs.python.org/library/itertools.html
by using the grouper() method