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

2012-09-12 Thread Chris Jerdonek

Changes by Chris Jerdonek :


--
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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file27509/test_csv_py3k.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-10-09 Thread Łukasz Langa

Changes by Łukasz Langa :


--
assignee:  -> lukasz.langa
nosy: +lukasz.langa
versions: +Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-10-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 from string through writer then through the reader back to string is 
inconsistent.  The reader should return as output the same input that was given 
to the corresponding writer and this is not the case.  

So even if CVS in not well defined I believe the writer and reader should at 
least be consistent.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that encountering the end of a string 
immediately after an escaped \r or \n is does not begin a new record.

--
keywords: +patch
nosy: +mjohnson
Added file: http://bugs.python.org/file29495/csv.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
assignee: lukasz.langa -> 
nosy: +r.david.murray
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions:  -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com