Daniel Diniz aja...@gmail.com added the comment:
I get different behavior in py3k compared to trunk:
~/trunk-py$ ./python issue1511_py3k.py
[['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
'foo,bar\r\nbaz\r\nbiff,boo\r\n'
~/trunk-py$ ../py3k/python issue1511_py3k.py
[['foo', 'bar\nbaz\nbiff', 'boo']]
Skip Montanaro s...@pobox.com added the comment:
Daniel Daniel Diniz aja...@gmail.com added the comment:
Daniel I get different behavior in py3k compared to trunk:
Daniel ~/trunk-py$ ./python issue1511_py3k.py
Daniel [['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
Daniel
Daniel Diniz aja...@gmail.com added the comment:
You're right, sorry about the noise. Closing as out of date.
--
resolution: - out of date
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Christian Heimes:
--
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1511
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Skip Montanaro:
--
assignee: - skip.montanaro
nosy: +skip.montanaro
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1511
__
___
Python-bugs-list mailing list
New submission from Bill Fenner:
When a field has internal line breaks, e.g.,
foo,bar
baz
biff,boo
that is actually 3 lines, but one csv-file row. csv.reader() converts
this to ['foo', 'bar\nbaz\nbiff', 'boo']. This is a reasonable
behavior.
Unfortunately, csv.writer() does not use the
Changes by Bill Fenner:
--
components: +Library (Lib)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1511
__
___
Python-bugs-list mailing list
Unsubscribe:
Bill Fenner added the comment:
I realized that my description was not crystal clear - the file being
read has \r\n line terminators - in the format that I used later, the
input file is
foo,bar\r\n
baz\r\n
biff,boo\r\n
__
Tracker [EMAIL PROTECTED]
Gregory P. Smith added the comment:
release25-maint and trunk (2.6) appear to do the correct thing when
testing on my ubuntu gutsy linux x86 box. test script and file attached.
The problem is reproducable in a release24-maint build compiled 2007-11-05.
--
nosy: +gregory.p.smith
Added
Gregory P. Smith added the comment:
attaching the test input file. use od -x or similar to compare the
new.csv output with issue1511.csv to see if the problem happened.
its 2.4.. that may be old enough to be considered dead
Added file: http://bugs.python.org/file8817/issue1511.csv
10 matches
Mail list logo