28.03.12 21:13, Heiko Wundram написав(ла):
Reading from stdin/a file gets you bytes, and
not a string, because Python cannot automagically guess what format the
input is in.

In Python3 reading from stdin gets you string. Use sys.stdin.buffer.raw for access to byte stream. And reading from file opened in text mode gets you string too.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to