[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2018-01-12 Thread Sebastian Bank
Sebastian Bank added the comment: To be complete, the docs of Dialect.escapechar should probably also say that it is used to escape itself. However, note that csw.writer currently only does this with csv.QUOTE_NONE (breaking round-trip otherwise: #12178).

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2018-01-11 Thread Sebastian Bank
Sebastian Bank added the comment: I am not sure about the design vs. code bug distinction, but what makes me think this should be fixed is primarily the broken round-trip (already mentioned above): >>> import io, csv >>> def roundtrip(value, **fmtparams):

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was 'reopened' by #31590. I can understand inconsistency as a 'design bug', but design bugs are not code bugs, and fixing a design bugs is an enhancement issue, not a behavior issue. It is not clear to me why, with the specified

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2013-03-19 Thread Michael Johnson
Michael Johnson added the comment: On input, the reader sees a line like ['one\\\n','element'] from the file iterator and successfully escapes the newline character, but still interprets the end of the string as the end of a record. I've attached a patch that modifies this behavior, so

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2013-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 940748853712 by R David Murray in branch 'default': #15927: Fix cvs.reader parsing of escaped \r\n with quoting off. http://hg.python.org/cpython/rev/940748853712 -- nosy: +python-dev ___ Python tracker

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2013-03-19 Thread R. David Murray
R. David Murray added the comment: Although this is clearly a bug fix, it also represents a behavior change that could cause a working program to fail. I have therefore only applied it to 3.4, but I'm open to arguments that it should be backported. Thanks for the patch, Michael. --

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2013-03-17 Thread Kalon Mills
Kalon Mills added the comment: Serhiy, sorry I'm not sure I understand your question. But if you take a look at the script that exhibits the problem I think the bug that I'm reporting becomes more clear. Namely, using the dialect configuration shown in the script, the round trip conversion

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: CSV is not well defined format. What you expect to read from csv.reader(['one', 'two'])? If two rows ['one'] and ['two'], than the reader in its own right and there is no bug which can be fixed. -- ___ Python

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Maciej Szulik
Maciej Szulik added the comment: I've confirmed that bug in the latest repo version, still exists. I attach patch for py3k. I'll try to have a look at it in the current version, as soon as it will be fixed I'll port it to 2.7. -- nosy: +maciej.szulik versions: +Python 3.4 Added file:

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa nosy: +lukasz.langa versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15927 ___

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15927 ___ ___

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-09-12 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- components: +Library (Lib) -None title: cvs.reader does not support escaped newline when quoting=cvs.QUOTE_NONE - csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE ___