If you read a csv file, alter the data and then write it back, it would be very nice to recreate also the quoting behaviour. So e.g. if the file is quoted in style csv.QUOTE_NONNUMERIC, it would be very useful to have the quoting property set correctly in the dialect object returned by csv.Sniffer().sniff.
Also, I just figured out that the line terminator is also hard-coded to "\r\n". Would also be nice to be adaptive...
Linked PRs
If you read a csv file, alter the data and then write it back, it would be very nice to recreate also the quoting behaviour. So e.g. if the file is quoted in style
csv.QUOTE_NONNUMERIC, it would be very useful to have thequotingproperty set correctly in thedialectobject returned bycsv.Sniffer().sniff.Also, I just figured out that the line terminator is also hard-coded to "\r\n". Would also be nice to be adaptive...
Linked PRs