[issue5455] csv module no longer works as expected when file opened in binary mode
Jervis Whitley
report at bugs.python.org
Mon Mar 9 04:09:35 CET 2009
Jervis Whitley <jervisau at gmail.com> added the comment:
Hi Skip,
Currently, once we are sure the lineobj is a unicode obj we then
get it's internal buffer using:
line = PyUnicode_AsUnicode(lineobj);
for the purpose of iterating through the line.
is there an opportunity to use:
line = PyBytes_AsString(lineobj);
(or similar approach if I have quoted an incorrect function) for the
case that we have a bytes object (not Unicode)?
----------
message_count: 2.0 -> 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5455>
_______________________________________
More information about the Python-bugs-list
mailing list