On Mon, Jun 2, 2014 at 7:02 PM, Tim Delaney <timothy.c.dela...@gmail.com> wrote:
> In Java, it's much worse. At least with Python you can perform string-like
> operations on bytes. In Java you have to convert it to characters before you
> can really do anything with it, so people just use the default encoding all
> the time - especially if they want the convenience of line-by-line reading
> using BufferedReader ...

What exactly is "line-by-line reading" with bytes? As I understand it,
lines are defined by characters. If you mean "reading a stream of
bytes and dividing it on 0x0A", then surely you can do that, but that
assumes an ASCII-compatible encoding.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to