This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaywalker
Recipients jaywalker, vstinner
Date 2009-01-05.17:19:11
SpamBayes Score 0.1641936
Marked as misclassified No
Message-id <269075.27562.qm@web111115.mail.gq1.yahoo.com>
In-reply-to
Content
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>
_______________________________________
History
Date User Action Args
2009-01-05 17:19:12jaywalkersetrecipients: + jaywalker, vstinner
2009-01-05 17:19:12jaywalkerlinkissue4847 messages
2009-01-05 17:19:11jaywalkercreate