13 Apr
2007
13 Apr
'07
3:32 p.m.
On 4/13/07, Jason Orendorff
On 4/13/07, George Sakkis
wrote: f1,f2 = [iter(open(f)).map(str.rstrip) for f in 'foo.txt','bar.txt'] for i,line in (f1[:3] + f2[1:5]).filter(None).enumerate(): print i,line
George, you've got to pick a better example next time. This one is terrifying. :)
I know, but the equivalent using itertools is at least as terrifying :-) George