[issue22855] csv writer with blank lineterminator breaks quoting

2014-11-12 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22855] csv writer with blank lineterminator breaks quoting

2014-11-12 Thread R. David Murray
R. David Murray added the comment: Also, it is hard to see how to make this clearer: csv.QUOTE_MINIMAL Instructs writer objects to only quote those fields which contain special characters such as delimiter, quotechar or any of the characters in lineterminator. Hmm. Perhaps it would be a bit

[issue22855] csv writer with blank lineterminator breaks quoting

2014-11-12 Thread R. David Murray
R. David Murray added the comment: If the line terminator is not \n, there is no reason to quote values with \n in them. (Try your code with lineterminator set to 'd' to see what I mean.) -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue22855] csv writer with blank lineterminator breaks quoting

2014-11-12 Thread Eric Haszlakiewicz
New submission from Eric Haszlakiewicz: I'm trying to emit a single line of csv without any line terminators, but specifying lineterminator=None results in a "lineterminator must be set" error, and setting lineterminator='' results in lack of quotes around certain fields. with open("foo.cs