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 georg.brandl, jaywalker, pitrou, vstinner
Date 2009-01-05.17:51:28
SpamBayes Score 0.30193403
Marked as misclassified No
Message-id <625225.52668.qm@web111106.mail.gq1.yahoo.com>
In-reply-to
Content
I think what you suggest makes most sense. 
Thanks.

----- Original Message ----
From: Antoine Pitrou <report@bugs.python.org>
To: jaywalkie@yahoo.com
Sent: Monday, January 5, 2009 12:47:21 PM
Subject: [issue4847] csv fails when file is opened in binary mode

Antoine Pitrou <pitrou@free.fr> added the comment:

You can avoid the newline translation problem by using the newline
parameter in open(). Set it to '' (the empty string) and any CR and LF
characters should remain intact.

As for the original problem, IMHO it is a documentation bug.

----------
assignee:  -> georg.brandl
components: +Documentation -Library (Lib)
nosy: +georg.brandl, pitrou
priority:  -> normal

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4847>
_______________________________________
History
Date User Action Args
2009-01-05 17:51:29jaywalkersetrecipients: + jaywalker, georg.brandl, pitrou, vstinner
2009-01-05 17:51:28jaywalkerlinkissue4847 messages
2009-01-05 17:51:28jaywalkercreate