I have two files that are zipped with something like the following:
for line in zip(open(file1), open(file2)):
# do-something
Unfortunately, now file2 has changed, and there is an additional line at the beginning. Yes, I could get rid of that manually (or with an additional script/program), but since the actual number of involved files is huge, I'd prefer to solve the problem at this level.
So, what I want is something like the following (which would be valid, if open(file) were subscriptable):
for line in zip(open(file1), open(file2)[1:]):
# do-something