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

After calling open, you can transfer strings of data to and from the associated external file by calling the returned file object’s methods


Cover of Learning Python, 5th Edition


the point of adding a "File" object in the between, is to wrap functionalities such as reading by line, reading all at once, seek by offset, etc. This extra abstraction layer deals with the complexity of handling file contents.