Li Wang wrote:
So, if I am using python in Linux, do open('file', 'r') and
open('file', 'rb') work the same way?

You get identical results, but you ar lying to the reader of your code.
you should include the 'b' if what you want is bytes (or octets if you
prefer), and not use it if what you expect is "text."   Your code
becomes less confusing by using 'b' properly, even if you see no
particular difference.

--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to