Wolfgang E. Sanyer added the comment:
You can close this - it turns out that I was looping through the input file
once first, and did not properly rewind it after doing so.
Might it make sense to have the csv module rewind the file after it has been
looped through, so that it acts as a
New submission from Wolfgang E. Sanyer:
I have a use case where I am using a csv.reader to loop through one file and
trying to use a csv.writer to output to another file. However, when I do this,
the csv.writer instance does not write anything to the output file.
ex:
import csv
with open