file.read Method Documentation (Python 2.7.10)

Chris Angelico rosuav at gmail.com
Thu Jan 12 06:49:54 EST 2023


On Thu, 12 Jan 2023 at 21:25, Stephen Tucker <stephen_tucker at sil.org> wrote:
>
> Chris,
>
> Thanks for this clarification.
>
> I have not found documentation that disagrees with you. I simply observe that the documentation that I have alluded to earlier in this chain (section 5.9 File Objects)

That's specifically the plain file objects. Other types of objects
behave differently.

> could have been made clearer by the addition of a note along the lines that the behaviour of a file's read method (in particular, what the unit of information is that it reads (that is, "byte", "UTF-8 encoded character", or whatever)) depends on the way in which the file has been opened.
>
> Thank you, Chris (and others) for your attention to my request. I consider this enquiry closed.
>

Cool cool!

ChrisA


More information about the Python-list mailing list