This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezzieyguywuf
Recipients ezzieyguywuf
Date 2015-06-24.20:05:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.


import csv

with open("input.csv", "rb") as input, open("output.csv", "wb") as output:
    reader = csv.reader(input)
    writer = csv.writer(output)

    for row in reader:
        writer.writerow("data") # this writes out nothing
    writer.writerow("more data") # this writes out something
Date User Action Args
2015-06-24 20:05:15ezzieyguywufsetrecipients: + ezzieyguywuf
2015-06-24 20:05:15ezzieyguywufsetmessageid: <>
2015-06-24 20:05:15ezzieyguywuflinkissue24503 messages
2015-06-24 20:05:15ezzieyguywufcreate