[issue5455] csv module no longer works as expected when file opened in binary mode
Skip Montanaro
report at bugs.python.org
Mon Mar 9 14:15:45 CET 2009
Skip Montanaro <skip at pobox.com> added the comment:
Jervis> So the returned lineobj is a bytes type and then the
Jervis> PyUnicode_Check throws the error.
Right, but given that fact how do you get a Unicode string out of the bytes
without an encoding? You can't open a file in binary mode and give the
encoding arg.
----------
message_count: 4.0 -> 5.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5455>
_______________________________________
More information about the Python-bugs-list
mailing list