Jervis Whitley <jervi...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5455> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com