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 licht-t
Recipients licht-t, nitishch
Date 2017-12-10.05:06:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think the first one is buggy and there are two reasons.

1. The both are valid CSV. The double quoting is unnecessary. Some other applications, eg. Excel, does not use the double quoting.
Also, the current implementation make to quote only if the string is '' and the output is at the first line.

2. '' is not quoted when the two columns case.
## Input:
import csv
fp = open('test.csv', 'w')
w = csv.writer(fp, dialect=None)
w.writerow(['', ''])
w.writerow(['3', 'a'])
## Output:

These seem inconsistent and the quoting is unnecessary in this case.

# References
Date User Action Args
2017-12-10 05:06:24licht-tsetrecipients: + licht-t, nitishch
2017-12-10 05:06:24licht-tsetmessageid: <>
2017-12-10 05:06:24licht-tlinkissue32255 messages
2017-12-10 05:06:23licht-tcreate