Author licht-t
Recipients licht-t, nitishch
Date 2017-12-10.05:06:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512882384.47.0.213398074469.issue32255@psf.upfronthosting.co.za>
In-reply-to
Content
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'])
fp.close()
```
## Output:
```
,
3,a
```

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

# References
http://www.ietf.org/rfc/rfc4180.txt
History
Date User Action Args
2017-12-10 05:06:24licht-tsetrecipients: + licht-t, nitishch
2017-12-10 05:06:24licht-tsetmessageid: <1512882384.47.0.213398074469.issue32255@psf.upfronthosting.co.za>
2017-12-10 05:06:24licht-tlinkissue32255 messages
2017-12-10 05:06:23licht-tcreate