O'Reilly logo
  • You Wang thinks this is interesting:

Python 3.X draws a sharp distinction between text and binary data in files: text files represent content as normal str strings and perform Unicode encoding and decoding automatically when writing and reading data

From

Cover of Learning Python, 5th Edition

Note

P3 does automatic encoding and decoding during file processing