I have two iterables, and I want to go over them in pairs
foo = (1, 2, 3)
bar = (4, 5, 6)
for (f, b) in some_iterator(foo, bar):
print "f: ", f, "; b: ", b
The result should be
f: 1; b: 4
f: 2; b: 5
f: 3; b: 6
But that seems somewhat unpythonic to me. Is there a better way to do it?