Message79170
In an unlikely scenario:
say one of the fields has an embedded \r. For instance "blahblah\r" is the value of the first column. Now open this file in text mode. What happens to this '\r' even before csv.reader sees it? If it remains intact, no problem. If it is converted to a newline in any platform, and that newline is not exactly \r, does this not introduce a problem?
Just curious...
Thanks.
----- Original Message ----
From: STINNER Victor <report@bugs.python.org>
To: jaywalkie@yahoo.com
Sent: Monday, January 5, 2009 12:05:59 PM
Subject: [issue4847] csv fails when file is opened in binary mode
STINNER Victor <victor.stinner@haypocalc.com> added the comment:
Do you expect to be able to read CSV as bytes or just to fix the
documentation example?
----------
nosy: +haypo
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4847>
_______________________________________ |
|
Date |
User |
Action |
Args |
2009-01-05 17:19:12 | jaywalker | set | recipients:
+ jaywalker, vstinner |
2009-01-05 17:19:12 | jaywalker | link | issue4847 messages |
2009-01-05 17:19:11 | jaywalker | create | |
|