I have three collection.deques and what I need to do is to iterate over each of them and perform the same action:
for obj in deque1: some_action(obj)
How about zip?
for obj in zip(deque1, deque2, deque3): for sub_obj in obj: some_action(sub_obj)