[issue4847] csv fails when file is opened in binary mode
jaywalker
report at bugs.python.org
Mon Jan 5 18:51:29 CET 2009
jaywalker <jaywalkie at yahoo.com> added the comment:
I think what you suggest makes most sense.
Thanks.
----- Original Message ----
From: Antoine Pitrou <report at bugs.python.org>
To: jaywalkie at 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 at 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 at bugs.python.org>
<http://bugs.python.org/issue4847>
_______________________________________
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4847>
_______________________________________
More information about the Python-bugs-list
mailing list