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 <1435176315.93.0.429947665214.issue24503@psf.upfronthosting.co.za>
In-reply-to
Content
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("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
History
Date User Action Args
2015-06-24 20:05:15ezzieyguywufsetrecipients: + ezzieyguywuf
2015-06-24 20:05:15ezzieyguywufsetmessageid: <1435176315.93.0.429947665214.issue24503@psf.upfronthosting.co.za>
2015-06-24 20:05:15ezzieyguywuflinkissue24503 messages
2015-06-24 20:05:15ezzieyguywufcreate