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)
I would simply do this :
for obj in deque1 + deque2 + deque3: some_action(obj)